4 replies
  • SEO
  • |
Why javascript 301 redirect is not search engine friendly?
#301 #redirect
  • Profile picture of the author hop
    document.location ?
    {{ DiscussionBoard.errors[7110074].message }}
    • Profile picture of the author puneetkgarg
      301 redirect is the useful method of SEO techniques which is used to redirect users from one url to another url. It is used in case you are changing your urls then using 301 redirect you can redirect your users from old url to new url.

      Benefits of using 301 redirect: there are some benefits of using 301 redirect is that it passes all the pr value of your old page to your new page which helps your new page to rank well.
      {{ DiscussionBoard.errors[7110308].message }}
  • Profile picture of the author Jose Princely
    Really have not heard about java script 301 redirection before. Can you please examine a sample here in a post..
    {{ DiscussionBoard.errors[7110653].message }}
  • Profile picture of the author Dan Grossman
    There's no such thing as a "javascript 301 redirect".

    301 refers to an HTTP status code, which is sent in the headers of an HTTP response.

    JavaScript is part of the response body, which is only rendered by the client after all HTTP headers have been received, including whatever status code the server sent.

    It's too late at that point to change the status code to 301 or anything else. JavaScript can then initiate another redirect with the document.location object, but that's not an HTTP redirect and has no status code associated with it.
    Signature
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[7110689].message }}

Trending Topics