rewrite rule for php easter eggs

Renaud Allard renaud at llorien.org
Sun Apr 13 12:14:05 MSD 2008


Hello,

I am trying to wrote a rewrite rule to forbid the request of PHP easter
eggs.

So I'd like the request:
http://site.domain.tld/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
to be redirected to index.php

I tried:
rewrite PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 /index.php last;

Or subsets of this one, but it doesn't seem to work. The rewrite doesn't
seem to be processed when I access the page.

Has someone an idea of why the rule isn't processed?

-------------- 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: <http://nginx.org/pipermail/nginx/attachments/20080413/5fb9315b/attachment.bin>


More information about the nginx mailing list