I know javascript redirects hurt SEO, Does backend PHP? or other methods hurt rank?

Discussion in 'Search Engine Optimization' started by prince718, Jun 15, 2010.

?

Does Backend(PHP) redirect hurt search engine ranking?

  1. Yes

    0 vote(s)
    0.0%
  2. Nope

    0 vote(s)
    0.0%
  3. Have No Idea! Help!

    0 vote(s)
    0.0%
  1. #1
    Ok. Heres the deal. I read a lil while back from different sources, that, having a javascript redirect on your page(s) will decrease the value of that page and can drop the rank of the site... So i was wondering, since php is backend, does the redirect via this method get a pass?

    ALSO, I know there is another method aside from scripting to redirect your site. Its done in the Cpanel... I did it a while back, but forgot how to navigate it...

    So:
    1. Can anyone refresh my memory on this?
    2. Does this method of redirection hurt search engine optimization? or atleast google optimization.
     
    prince718, Jun 15, 2010 IP
  2. carleisenstein

    carleisenstein Peon

    Messages:
    253
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are three common types of redirect:

    1) A META redirect, which occurs in the HTML code on your page
    2) A JavaScript redirect, which occurs in JavaScript
    3) A 301 PERMANENT server-side redirect, which occurs in PHP / Apache
    4) A 302 TEMPORARY server-side redirect, which occurs in PHP / Apache

    The first two are generally considered bad for SEO, because search engines don't know how to interpret them and sometimes won't follow them. They also pass little / no PageRank.

    The second two are preferred, and generally speaking you probably want a 301 redirect - which tells the search engine the content has permanently moved and they should use the new address. 302s should only be used if the content has temporarily moved and you still want to use the existing address. Note that both of these redirects also reduce the amount of PageRank passed though - compared to landing directly on the page.

    A 301 redirect can be implemented using the .htaccess file in Apache, or in code in PHP - there are loads of tutorials in Google if you search for "301 redirect php".

    You can also test what sort of response you're giving to the search engines with a tool like WebSniffer (http://web-sniffer.net/). If it says 200 then it's a JavaScript or META redirect. Otherwise it will say 301 or 302.
     
    carleisenstein, Jun 16, 2010 IP
  3. SuccessSuccess

    SuccessSuccess Well-Known Member

    Messages:
    149
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    The best option is 301 redirect in .htaccess file. This way you will retain PR of old page. Don't even think of meta refresh or javascript redirect.
     
    SuccessSuccess, Jun 16, 2010 IP
  4. prince718

    prince718 Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanx, carleisenstein & SuccessSuccess.. I have added to your reps!. That is exactly what I needed to know...
    I now have another question in relation to this line:

    "Note that both of these redirects also reduce the amount of PageRank passed though - compared to landing directly on the page."

    Do you mean it reduces the pagerank of the domain that is being forwarded FROM, or it reduces the pagerank of the domain it is being Redirected TO?

    Thanx in advance....
     
    prince718, Jun 16, 2010 IP
  5. AirForce1

    AirForce1 Peon

    Messages:
    1,325
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think the 301 redirection would hurt neither the source page nor the destination page. 301 redirection is recommended by search engines and it is there for this purpose. It would keep the values of PR and SERP.

    Have a nice day,
     
    AirForce1, Jun 16, 2010 IP
  6. carleisenstein

    carleisenstein Peon

    Messages:
    253
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It doesn't really *hurt* anyone, but it does have a small impact on the PageRank passed to your site. :) So if www.somesite.com links to www.yoursite.com/somepage/ and www.yoursite.com/somepage/ 301 redirects to www.yoursite.com/anotherpage/ then:

    1) www.somesite.com isn't affected at all by the redirect - it's just an outbound link like any other.
    2) www.yoursite.com/somepage/ will not be indexed or ranked at all, and will not receive any PageRank
    3) www.yoursite.com/anotherpage/ will be indexed and ranked, but will receive slightly less PageRank from the link than it would have if www.somesite.com had linked to it directly.

    Hidden away in this interview Matt Cutts from Google confirms that passing a link through a 301 does "decay" PageRank, compared to a direct link: http://www.stonetemple.com/articles/interview-matt-cutts-012510.shtml
     
    carleisenstein, Jun 17, 2010 IP