rewriterules

AMP Admin admin at ampprod.com
Fri Apr 24 17:44:36 MSD 2009


 Sorry for a simple question but I'm just not that good at regex and nginx
yet.  Can someone help me convert the .htaccess rewrite to nginx?

RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$
page.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$
page.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]






More information about the nginx mailing list