Forum Moderators: open
Currently the http status code given for the pages when it redirects is a 302.
I have read here that for various SEO reasons the best way to redirect a domain name and also to retain the PR is to make a 301 redirect.
The question is: does this theory also apply to a "complete" site with all it's pages being redirected this way? Meaning, 301 means "object permanently moved" and that is not really true in this case; it is just the architecture that we have that cannot be changed that makes our site behave that way.
So: Which code should we be returning site-wide on our "redirects" that would be the most SEO friendly?
Thanks!
It appears that you're using 302 redirects as a permanent solution, using middle-man scripts to do the dirty work. Generally, 30* redirects are only meant to be a temporary solution.
states "A 302 temporary redirect tells Googlebot, 'Okay, go here for now, but try again later because it may not be that way later,'" he further explained. "If it's going to be that way for good and in the same location, then do a permanent one -- a 301 redirect."
These links also discuss the 301 vs 302 in different variations:
[hotnetprofits.com...]
[drupal.org...]
There is no right or wrong, better or worse. The bottomline is, which link do you "prefer" the search engines to reference: pre-redirection or post-redirection? If it's pre, use 302. If it's post, use 301.
For instance,
If your content script has a link
[website.com...]
that redirects to:
[website.com...]
and you want the prior "?page-ID" link used for incoming referrals from search engine indexes, use 302 redirects.
If you want search engines to only show the latter "/product-123/" url in search results, use 301.