网站将不会加载未经WWW preFIX - 字preSS? [英] Website Won't Load without WWW Prefix - WordPress?
问题描述
我们之前,我们的老网站有这个问题,但只在某些浏览器。最近,我们推出我们的新网站的生活和现在的问题似乎影响到所有的浏览器。当您访问的网站,而不WWW preFIX,你被带到了我告诉你一个正在建设中页面是某种类型的服务器错误页面。
We had this issue before with our old website, but only in certain browsers. We recently pushed our new website live and the issue now seems to be affecting all browsers. When you visit the website without the WWW prefix, you are taken to a "Under Construction" page that I'm told is a server error page of some sort.
下面是域: www.mcfaddengavender.com
Here is the domain: www.mcfaddengavender.com
下面是我目前的.htaccess文件:
Here is my current .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
有没有可能迫使所有浏览器加载WWW preFIX?
Would it be possible to force all browsers to load the WWW prefix?
推荐答案
DNS传播可以解释为什么它不工作。不,你不应该需要强制浏览器与WWW重装(我刚才看到你做了)。您应该使用CNAME记录在您的DNS映射您的www子域名上你的主要领域。
DNS propagation could explain why it does not work. No, you should not need to force browsers to reload with www (which I just saw you did). You should use a CNAME record in your DNS to map your www subdomain on your main domain.
这篇关于网站将不会加载未经WWW preFIX - 字preSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!