Welcome! Log In Create A New Profile

Advanced

Re: rewrite question

Francis Daly
June 11, 2018 11:08AM
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 "&amp" to all urls, even the pages excluded by robots.txt
>
> e.g. page.php?page=aaa -> page.php?page=aaa&amp
>
> Any idea how to redirect/rewrite this?

Untested, but:

if ($args ~ "&amp$") { 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
Subject Author Posted

Rewrite question

Axel June 03, 2010 11:56AM

Re: Rewrite question

iberkner June 03, 2010 12:04PM

Re: Rewrite question

Maxim Dounin June 03, 2010 12:18PM

Re: Rewrite question

Axel June 03, 2010 12:20PM

Re: rewrite question

Richard Stanway via nginx June 11, 2018 06:02AM

Re: rewrite question

Francis Daly June 11, 2018 11:08AM

Re: rewrite question

Richard Stanway via nginx June 11, 2018 11:40AM

Re: rewrite question

shiz June 12, 2018 06:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready