On Thu, Jun 07, 2018 at 07:57:43PM -0400, shiz wrote:
Hi there,
> Recently, Google has started spidering my website and in addition to normal
> pages, appended "&" to all urls, even the pages excluded by robots.txt
>
> e.g. page.php?page=aaa -> page.php?page=aaa&
>
> Any idea how to redirect/rewrite this?
Untested, but:
if ($args ~ "&$") { return 400; }
should handle all requests that end in the four characters you report.
You may prefer a different response code.
Good luck with it,
f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx