My WordPress 3 multiuser has been enabled, but I don’t know how to rewrite the following .htaccess rules for nginx:
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
Any hints?
These codes do not work:(I have done some changes with them, but still not work in wordpress3.0.1)
I have tried it
I built wordpress3.0.1 in virtualbox with apache2, just finding the .htaccess file was shown below:
so the nginx rewrite rule should be those:
and this works!