当我输入我的网站的网址http://www.mayumibeats.com/question
时,它会将我重定向到我的主页http://mayumibeats.com/
,但是当我输入时没有www ,例如http://mayumibeats.com/question
它就可以了。
我在这里缺少什么?
这是我的.httaccess
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]
注意:该网站是wpmu
答案 0 :(得分:0)
尝试更改网站网址和主页网址,将http://mayumibeats.com
替换为http://www.mayumibeats.com