I’m trying to run a multi domain blog installation with WordPress and Nginx. The last step is to configure some rewrite rules in .htaccess (apache only) for the webserver. How do I 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 rewrite rules example for WordPress 3 :