How to write this rewrite?

Chancey chanceycn at
Thu Jul 9 05:48:54 MSD 2009

Hi, guys!

This is Apache's format, how to write in nginx?  Thanks a lot.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css|cgi|html|htm|cert|swf)$ index.php
php_flag always_populate_raw_post_data On


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list