Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: .htaccess, can I redirect a redirect?

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    28

    .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

  2. #2
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    3,138

    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.
    WigeDev - Freelance web and software development

  3. #3
    Senior Member
    Join Date
    Mar 2007
    Posts
    134

    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.

  4. #4

    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.

Similar Threads

  1. htaccess redirect
    By freehits in forum Web Programming Discussion Forum
    Replies: 3
    Last Post: 03-03-2008, 04:53 PM
  2. 301 Redirect and htaccess problem
    By thindenim in forum Web Programming Discussion Forum
    Replies: 5
    Last Post: 03-13-2007, 10:55 PM
  3. htaccess + redirect
    By newconceptdesign in forum Search Engine Optimization Forum
    Replies: 5
    Last Post: 02-14-2007, 06:39 PM
  4. .htaccess for 301 redirect ?
    By TransferTown in forum Other Engines/Directories
    Replies: 8
    Last Post: 01-06-2007, 01:26 AM
  5. Where to add redirect code in .htaccess?
    By Stratcat in forum Web Programming Discussion Forum
    Replies: 1
    Last Post: 04-26-2006, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •