我想这样做
example.org/blogname1
example.org/departments/blogname2
example.org/departments/blogname3
example.org/services/blogname3
并按照本教程http://maisonbisson.com/post/14052/wordpress-hacks-nested-paths-for-wpmu-blogs/
进行操作这是我的.htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [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 ^(.+)?/(wp-(content|admin|includes).*) wp-folder/$2 [L]
RewriteRule ^(.+)?/(.*\.php)$ /wp-folder/$2 [L]
RewriteRule . index.php [L]
现在我的问题是将http://example.org/wp-admin/network/*
重写为http://example.org/wp-folder/wp-admin/network/*
答案 0 :(得分:0)
我用
解决了这个问题# add a trailing slash to /wp-admin
#RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin/network.*$ $1wp-folder/wp-admin/network/ [R=301,L]