What's the Difference Betrween These 2 Redirects?

2 replies
  • WEB DESIGN
  • |
What's the difference between:

<?php
header("Location: *****");
?>

and

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: *****");
?>

I want to just test out a redirect to see if traffic converts better at a new url and page layout I put together and I want traffic coming from the old URL, as well, so I want to redirect. But I don't know in this case if I should do a permanent or just the first one. Are they both reversable and I won't lose link juice in doing so? Also do I get link juice immediately using both?
#betrween #difference #redirects
  • Profile picture of the author OwenTrapp
    There should be no difference, they should both work the same.
    {{ DiscussionBoard.errors[2462386].message }}
    • Profile picture of the author ronperkins
      The difference is that your first redirect will have the default status code of 302 which means a temporary redirect.

      The 301 redirect is considered as the most efficient and Search Engine Friendly method for webpage redirection, allowing to transfer PageRank.

      So to be Search Engine Friendly I would use a server-side 301 redirect.
      {{ DiscussionBoard.errors[2463619].message }}

Trending Topics