2012-12-01 28 views
1

(我在我的网站上重定向非WWW和非HTTPS用户https://www.frostriver.com 然而,在Chrome和Safari中,当有人输入http://frostriver.com(包括 'http://' 在URL字段),他们得到一个页面无法找到错误重定向非万维网到WWW与http://不在WebKit

下面是几个例子: frostriver.com - 重定向, http://frostriver.com - 错误, https://frostriver.com - 错误, http://www.frostriver.com - 重定向, https://www.frostriver.com - 作品。

这是我的htaccess文件:

Options +FollowSymLinks 
RewriteEngine On 
RewriteBase/
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.frostriver.com/$1 [R,L] 

谢谢! Troy

回答

1

域名frostriver.com没有与其关联的DNS条目。因此,frostriver.com未指向您的服务器,因此用户永远不会重定向,但会收到错误消息。

但是,如果您在Chrome中输入frostriver.com而没有http://,Google会检查该域是否指向服务器。如果没有,它会做谷歌搜索frostriver.com并重定向到第一个搜索结果,即www.frostriver.com/

PS。我在Firefox中得到相同的错误,所以我没有看到这里的webkit连接

PPS。我没有看到你的htaccess中的任何代码会将非www重定向到www。

+0

OMG,我不敢相信我没有看到。客户端的网络管理员设置DNS,当我检查frostriver.com时,它重定向到www。另外,我使用的指令是任何网络流量端口80都会自动重定向到该网站的https:// www版本。谢谢你的帮助! – Troy