Plesk 11强制重定向到非www [英] Plesk 11 forcing redirect to non-www
本文介绍了Plesk 11强制重定向到非www的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经订购了带有Plesk 11的新专用服务器.我的网站从旧服务器移到了新服务器,但是在打开网站时遇到了问题.
I have ordered the new dedicated server with Plesk 11 on it. Moved my websites from old server to the new one but had some issue on opening websites.
我使用.htaccess强制客户端使用带有www的网站.默认情况下,Plesk做相反的事情:从www到非www.结果是重定向循环...
Using .htaccess, I force the client to use the website with www. Plesk is doing contrary by default: www to non-www. A redirect loop as result ...
我的问题:默认情况下,如何禁用添加Plesk这些行:
My question: how can I disable adding Plesk these rows by default:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.com$1 [L,R=301]
</IfModule>
感谢您的帮助!
推荐答案
找出了在这种情况下的处理方法:
Found out what to do in that case:
- 转到订阅
- 点击您要管理的域
- 转到网站和域
- 在页面底部,找到您的域(您将在其旁边看到托管设置"链接)
- 点击托管设置"
- 在首选域"下拉列表中选择无"
- 通过单击确定"保存设置
希望它对某人有帮助!
这篇关于Plesk 11强制重定向到非www的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文