Last updated on April 1st, 2020 at 12:15 pm
I’ve removed and uninstall the some plugins, and I would like to prevent it display some error or 404, so I apply this way to nginx.conf redirection.
If you want to redirect permanent, then you can use 302.
if ($query_string ~ "^(.*)amp(.*)$") {
return 301 $uri;
}
redirect ?amp queries
if ($query_string ~ “^amp(.)$”) {
rewrite ^(.)$ $uri? permanent;
}
https://github.com/littlebizzy/slickstack/issues/130