need help with rewrite

Glen Lumanau glen at lumanau.web.id
Thu Dec 11 07:03:23 MSK 2008


Hi 

 

Can someone help me in translating this rewrite into nginx?

 

    RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
##optional - see notes##

    RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule (.*) index.php

    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

    RewriteRule ^(.*)$ index.php [F,L]

 

Appreciate your help

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20081211/d52c965a/attachment.html>


More information about the nginx mailing list