我在与运行的WordPress 3.1.4多站点一个站点一个微小但恼人的问题。
导航到子页面的URI没有“HTTP:// www”的如在重定向到根“http://www.abetterworldbydesign.com”“abetterworldbydesign.com/2011-conference/”的结果。
这样做的目的是“abetterworldbydesign.com/2011-conference/”重定向到“http://www.abetterworldbydesign.com/2011-conference/”。
.htaccess文件下方(这是WordPress的多站点具体的东西 )。
# BEGIN WordPress
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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
# END WordPress