I've been spinning my wheels for a month on the following problem. Nothing I have tried from reading lots of answers from here and on stack exchange about rewriting queries has worked. Google has cached many urls with query parameters and I've been trying to remove the query parameters from the urls. example:
https://circadian.com/blog/12-hour-shifts?tmpl=component&print=1&format=print
I'm trying to get that re-written to
https://circadian.com/blog/12-hour-shifts
Any help here would be appreciated.
Thanks
if ($is_args) { rewrite ... }
). Could it be that incorrect page versions are cached in your browser? Try clearing the browser cache or using an incognito window to verify that.REQUEST_URI
variable, which, in turn, is defined in thefastcgi_params
Nginx configuration snippet to be equal to the$request_uri
built-in variable. Unlike$uri
, this variable does not change during internal rewrites, so the only way to make Joomla ignore query arguments is to redefine theREQUEST_URI
variable using thefastcgi_param
directive after including thefastcgi_params
file.