What HTTP redirect status should I use to link offsite?
Posted
by Matthew Scharley
on Stack Overflow
See other posts from Stack Overflow
or by Matthew Scharley
Published on 2009-10-23T12:09:39Z
Indexed on
2010/05/09
21:38 UTC
Read the original article
Hit count: 309
While randomly browsing my website via Google, I noticed that it was showing up remote redirects as local files. Now this can be both good and bad, but I'm wondering how can I fix this so it doesn't happen?
I'm currently using PHP and header('Location: ...
which sends a 302 redirect. Looking over the list of HTTP status codes, I'd take a guess that I should be using 303 redirects to redirect offsite. Is anyone able to help me here, and either confirm/deny this, or tell me what I should be doing instead?
Obviously, due to me not being able to tell Google to reindex my site on command, there's issues with being able to test this myself...
© Stack Overflow or respective owner