2012-12-01 19 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