301 redirect

Discussion in 'Web Hosting' started by rudradhar, Dec 6, 2012.

  1. rudradhar

    rudradhar
    uix_expand uix_collapse
    Member

    Joined:
    Jul 30, 2012
    Messages:
    268
    Likes Received:
    29
    Hi Guys,

    .htaccess or headers redirect which is best in seo for doing 301 redirect
     
  2. jimarmstrong

    jimarmstrong
    uix_expand uix_collapse
    Member

    Joined:
    Nov 23, 2012
    Messages:
    84
    Likes Received:
    9
    It depends on your website length, for instance that if your website has less pages then you can go through .htaccess redirection, it won't effect your rankings, but you have 1000 of pages then you must go through header redirection, but make sure if the page is not available on your server then it should be 404 not the 301 header status.

    Both the redirection methods are search engine friendly, so there is no negative effects on you ranking.
     
    • Like Like x 1
  3. guptaabhijit318

    guptaabhijit318
    uix_expand uix_collapse
    Member

    Joined:
    Dec 14, 2012
    Messages:
    107
    Likes Received:
    7
    The HTTP response status code 301 Redirect is used for permanent redirection, meaning current links or records using the URL that the 301 Moved Permanently responses is received for should be updated to the new URL provided in the Location field of the response.
    If the 301 status code is received in response to a request of any type other than GET or HEAD, the client must ask the user before redirecting.
     
  4. dgeneschi

    dgeneschi
    uix_expand uix_collapse
    Member

    Joined:
    Dec 10, 2012
    Messages:
    34
    Likes Received:
    13
    I'm reasonably certain that there is no distinction, and that when you add, for instance,
    Code:
    Redirect / new-domain.com/
    apache issues the 301 by sending the header, so it just comes down to what is easier for you, personally, to implement. For SEO purposes I'm quite certain crawlers will see the same thing (a "Status: 301 Moved Permanently" header). There might be a negligible performance increase in going the .htaccess route vs PHP Header function, but so small that it's really irrelevant.

    Also, I'm not totally sure that jimarmstrong is right, because using the above form of a .htaccess redirect (with the trailing slash after the new domain), "original-domain.com/some/path" will redirect to "new-domain.com/some/path", so paths shouldn't break and you should only need that one entry per new domain.
     
  5. ificallyoumine

    ificallyoumine
    uix_expand uix_collapse
    Member

    Joined:
    Dec 13, 2012
    Messages:
    36
    Likes Received:
    6
  6. tayloralina

    tayloralina
    uix_expand uix_collapse
    New Member

    Joined:
    Dec 17, 2012
    Messages:
    9
    Likes Received:
    0
    301 redirection is permanent redirection which we basically implement when one of our site or web page has permanently moved to some other location. It help us to retain the exiting traffic that is coming to the old web page or website.
     
  7. altcom

    altcom
    uix_expand uix_collapse
    Member

    Joined:
    Sep 13, 2012
    Messages:
    440
    Likes Received:
    100
    this is more on management question, htaccess easy your work to target broadly, while header redirection may limit to single page. With htaccess You can set redirection condition such as

    reference: http://www.seomoz.org/blog/htaccess-file-snippets-for-seos
     
    • Like Like x 1
  8. jaysh4922

    jaysh4922
    uix_expand uix_collapse
    Member

    Joined:
    Dec 3, 2012
    Messages:
    143
    Likes Received:
    6
    301 Redirect is a form of URL which allows the users and visitors of website moved from the current URL to the different address. It is basically defined as 301 redirection.
     

Share This Page