iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2009, 12:33 AM
T-G T-G is offline
WebProWorld New Member
 
Join Date: Jun 2007
Location: Clare Valley Australia
Posts: 23
T-G RepRank 1
Default .htaccess, can I redirect a redirect?

Hi, some time ago I set up a .htaccess file directing an OLD PAGE which no longer existed, to NEW PAGE.

Now the NEW PAGE it was directed to is also gone, so I want to redirect the NEW PAGE to a NEWER PAGE!

Not sure how to handle this, the first line of the .htaccessfile says

redirect PAGE A to PAGE B

(then the next line says)

redirect PAGE B to PAGE C

Can I do this?
__________________
Kakadu Nat Park in Australia has man eating crocodiles and 20000 year old rock paintings, see it by 4WD kakadu tours
Reply With Quote
  #2 (permalink)  
Old 01-22-2009, 10:57 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,648
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: .htaccess, can I redirect a redirect?

You can do that, and most search engines will follow 301 redirects up to 3 deep. (at least Google and Yahoo claim they will)

HOWEVER

It is a bad idea. The more redirects you have, the more likely browsers and spiders are to time out, and the more problems you may encounter when troubleshooting issues.

I would change the first redirect so that both versions are redirecting to page C. The search engines will eventually catch up with the change.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #3 (permalink)  
Old 01-23-2009, 07:54 AM
WebProWorld Member
 
Join Date: Mar 2007
Posts: 50
luigip RepRank 1
Default Re: .htaccess, can I redirect a redirect?

Hi T-G
As wige mentioned don't take a detour: Redirect A to C.
If you still have deeplinks to A, the linkjuice will also be better transfered to C.
__________________
Wetter - Regenradar
Reply With Quote
  #4 (permalink)  
Old 01-25-2009, 10:28 PM
seosean's Avatar
WebProWorld Member
 
Join Date: Jan 2009
Posts: 71
seosean RepRank 0
Default Re: .htaccess, can I redirect a redirect?

I agree with all that was said but I also wanted to add that if you redirect in .htaccess like that sometime you'll get a redirecting circle (when you redirect to this that redirects to that) and it confuses the browser and you end up with an error message page. So just test your redirects out.
__________________
Providing SEO services and business website design.
Reply With Quote
Reply

  WebProWorld > Search Engines > Google Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess redirect freehits Web Programming Discussion Forum 3 03-03-2008 05:53 PM
301 Redirect and htaccess problem thindenim Web Programming Discussion Forum 5 03-13-2007 11:55 PM
htaccess + redirect newconceptdesign Search Engine Optimization Forum 5 02-14-2007 07:39 PM
.htaccess for 301 redirect ? TransferTown Other Engines/Directories 8 01-06-2007 02:26 AM
Please help - 301 redirect a directory .htaccess African-Safari Search Engine Optimization Forum 1 10-05-2005 11:46 AM


All times are GMT -4. The time now is 10:00 PM.



Search Engine Optimization by vBSEO 3.3.0