SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2012
    Posts
    139
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    What order should the redirects be in? Specific then general, or vice-versa?

    From what I understand, each redirect a page goes through looses a little more SEO power, link juice, Google mojo, or whatever you like to call the strength imparted by incoming links.

    So this series of redirects: /original-url.html >>> /midstream-url.html >>> /almost-there.html >>> final-url.html would suffer three decreases in "link-juice".
    While this redirect: /original-url.html >>> final-url.html would only suffer one decrease in "link juice"

    My question is about the order that the redirects appear in the htaccess file, and if the general redirect to the www (or non-www) version of the URL should always be last to avoid an additional redirect and therefore retain as much link juice as possible?

    Here is an example of what I mean...

    If the order of redirects is like below, does it first convert an incoming mydomain.com/oldpage.html visitor to www.mydomain.com/oldpage.com and then to www.mydomain.com/newpage.com (for two decreases in link juice)
    Redirect #1: transfer all non-www version visitors of any page to the www version of the page.
    Redirect #2: transfer all incoming (www and non-www)mydomain.com/oldpage.html visitors to www.mydomain.com/newpage.com

    But if the order of redirects is switched like below, does it only convert an incoming mydomain.com/oldpage.html visitor to www.mydomain.com/newpage.com (for just one decrease in link juice)
    Redirect #1: transfer all incoming (www and non-www)mydomain.com/oldpage.html visitors to www.mydomain.com/newpage.com
    Redirect #2: transfer all non-www version visitors of any page to the www version of the page.

    Hopefully this makes sense. I look forward to hearing your answers...

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    GB,

    As a rule of thumb, handle the most specific progressing to the most general redirects. If you handle the general ones first, they'll likely redirect the specific ones before those get a chance to match.

    The exception I have to this deals with "global" redirections like domain name changes, force/forbid www's, etc., which will not "hijack" specific redirections.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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