What HTTP redirect status should I use to link offsite?
- by Matthew Scharley
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...