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]