Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 10
Trades: 0
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
 
 
Register now for full access!
Old 05-21-2005, 08:20 AM
Unknown.

Posts: 1,693
Trades: 0
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, 01:37 PM
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Trades: 0
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.

Please login or register to view this content. Registration is FREE
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 05-29-2005, 02:36 PM
Average Talker

Posts: 28
Trades: 0
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, 03:28 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to 301/302 redirect
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





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



Page generated in 0.56497 seconds with 12 queries