rewrite rule for php easter eggs

Renaud Allard renaud at
Sun Apr 13 12:35:23 MSD 2008

mike wrote:
> you need a proper regular expression.
> this should match it anywhere in the url, i.e.
> http://site.domain.tld/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
> http://site.domain.tld/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000&foo=bar
> it shouldn't just check for ending in it, because the query string
> might still be active even though it has another key/value pair on the
> end of it.
> rewrite (.*)PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000(.*) /index.php last;
> (i think that should work!)

Unfortunately, no, it is not working, I already tried this. Even if I
use a subset, it doesn't work, for example, even
rewrite PHPB8B5F2A0 /index.php last;
doesn't work. I haven't put ^ nor $, so it should match whatever place
in the request without needing any .*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3304 bytes
Desc: S/MIME Cryptographic Signature
URL: <>

More information about the nginx mailing list