我的WordPress的3多用戶已啓用,但我不知道如何改寫以下的.htaccess規則nginx的:用nginx重寫Wordpress 3中多個子目錄的規則?
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]
任何提示?
查看wordpress-nginx教程 - http://rtcamp.com/wordpress-nginx/tutorials/。根據您的多站點配置,從該列表中選擇適合您的配置。 – rahul286 2012-09-29 17:41:19