I am trying to start a blog installation of several domains using WordPress and Nginx. The final step is to configure some rewrite rules in .htaccess (apache only) for the web server. How to translate this into Nginx rewrite rules?
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]
nginx wordpress mod-rewrite
jdelard
source share