Reply
301/302 redirect
Old 05-21-2005, 12:29 AM 301/302 redirect
Novice Talker

Posts: 10
hi all, im looking to redirect my subdomain home page ... www.homepage.co.uk to www.homepage.co.uk/forum temporary ... is this possible? it is a subdomain .. i have access to the 'main' domain htaccess file but not sure what to put!

thanks in advance

opti
optimisery is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-21-2005, 07:20 AM
Unknown.

Posts: 1,693
The 301 redirect is to permanently redirect..
Code:
Redirect 301 /index.htm http://www.homepage.co.uk/forums/
whereas the 302 is just temporary..
Code:
Redirect 302 /index.htm http://www.homepage.co.uk/forums/
although ive read google doesnt like 302 redirects.
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 05-25-2005, 12:37 PM
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
or better still you go to ur domain panel thats makes life more easier
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.
http://www.smartsoft-ng.com
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 05-29-2005, 01:36 PM
Average Talker

Posts: 28
why not just...

<? header (Location: http://someothersite.com"); ?>

I mean so long as DNS is answering just redirect it that way .. no?
techniner is offline
Reply With Quote
View Public Profile
 
Old 05-29-2005, 02:28 PM
chrishirst's Avatar
Super Moderator

Posts: 13,519
Location: Blackpool. UK
Quote:
Originally Posted by techniner
why not just...

<? header (Location: http://someothersite.com"); ?>

I mean so long as DNS is answering just redirect it that way .. no?
yep you can do that BUT that will be a 302 redirect

to 301 in php is
Code:
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somesite.tld");
exit()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to 301/302 redirect
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14000 seconds with 12 queries