Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 20th Jul 2010, 01:23 PM   #1
Active Warrior
 
Join Date: 2010
Posts: 77
Thanks: 2
Thanked 3 Times in 3 Posts
Default
Help With What SHOULD Be a Simple Redirect
Share on: 
fb share twitter share gplus share more share

Basically I want to redirect from a subdomain of one domain of mine to the top level of a completely different domain of mine. I've never been able to get the code right for some reason, could someone help me out with this?

So basically www.examplesite#1.com/subdomain

to

www.examplesite#2.info

Yes one's a .com and the other is a .info, don't know if that has anything to do with anything but if someone could spell it out how to do the redirect for me I'd appreciate it.
rbf738 is offline  
Unread 20th Jul 2010, 03:06 PM   #2
Probably yo' daddy
 
Join Date: 2010
Posts: 145
Thanks: 3
Thanked 27 Times in 24 Posts
Default
Re: Help With What SHOULD Be a Simple Redirect
Share on: 
fb share twitter share gplus share more share

that is a subdirectory, not a subdomain...but that is beside the point.

so, the page at www.examplesite#1.com/subdomain, create a php file index.php, or whatever you are using to access it.

In that file put:

<?php
header("Location: http://www.examplesite#2.info");
?>


And nothing else...no html tags, nothing. If you want it moved permanently, you can add the 301 header:

<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.examplesite#2.info");
?>
BobJutsu is offline  
The Following User Says Thank You to BobJutsu For This Useful Post:
Unread 20th Jul 2010, 03:31 PM   #3
Active Warrior
 
Join Date: 2010
Posts: 77
Thanks: 2
Thanked 3 Times in 3 Posts
Default
Re: Help With What SHOULD Be a Simple Redirect
Share on: 
fb share twitter share gplus share more share

Ha sorry about that brainfart with the subdomain vs. directory, thanks for calling me out. Done and done, thanks man.
rbf738 is offline  
Closed Thread


Bookmarks

Tags
redirect, simple


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:59 PM.