Closed sergeyzozulya closed 2 years ago
Hey @sergeyzozulya - are you definitely sure going to /privacysm
on production is returning a 404? Is the data on dev identical to production (i.e. is your redirect on production, too)?
The way the SEO plugin redirects work is that when Craft returns a 404, it then looks up the redirect table to see if there are any redirects that match the request uri and then pass them off to the destination url.
Database is 100% the same, prod environment is Ubuntu and local in Mac but the services are the same. I'll try to debug and check if your plugin gets control on 404.
For some reason, the $path variable passed to findRedirectByPath function inside RedirectsService.php contains "privacysm?q=/privacysm&" instead of "/privacysm". This is very strange and seems nothing to do with your plugin. The issue can be closed.
Thanks for getting back to me @sergeyzozulya That is odd! I hope you manage to figure it out.
thanks @alexjcollins this is a kind of nginx misconfiguration i quess
Description
I have to servers: dev and production Both servers running Nginx and configured the same On deve server redirects work fine, on production - don't
Steps to reproduce
Additional info