Force 302 to 301 redirect

Francis Daly francis at daoine.org
Fri Jan 10 23:02:07 UTC 2020


On Fri, Jan 10, 2020 at 03:17:21PM -0500, tconlon wrote:

Hi there,

> Absolutely..and thanks
> 
> Running this on Forge / Digital Ocean

I think you indicated that your index.php takes id=235 and decides that
it will return a redirect to https://myurl/location/newyorkcity

Does *that* php code say "send a 301" or "send a 302"?

Can you change it to say "send a 301", if you want a 301?

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list