为什么没有-www重定向到https

时间:2015-05-13 11:01:11

标签: web https http-redirect

如果我跑" http://example.com"或" example.com"它重定向到https://www.example.com。无论如何我可以阻止它并确保它只是重定向到http://www.example.com。它在htaccess中似乎没有任何控制,所以我不确定在哪里可以看。这是当前的htacess文件:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} on
RewriteRule ^/?$ http://%{SERVER_NAME}/ [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

行:

RewriteCond %{HTTPS} on
(and) RewriteRule ^/?$ http://%{SERVER_NAME}/ [R=301,L]

被添加以试图阻止问题,但似乎没有做任何事情。

由于

0 个答案:

没有答案
相关问题