Plesk 11 forcing redirect to non-www

有些话、适合烂在心里 提交于 2019-12-04 20:51:44

问题


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.

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 ...

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>

Thanks for any help!


回答1:


Found out what to do in that case:

  1. Go to subscriptions
  2. Click the domain you would like to manage
  3. Go to websites & domains
  4. At the bottom of the page, find your domain (you will see "Hosting Settings" link next to it)
  5. Click on "Hosting Settings"
  6. Select "None" in the "Preferred domain"-dropdown
  7. Save the settings by clicking "OK"

Hope it helps someone!



来源:https://stackoverflow.com/questions/17783082/plesk-11-forcing-redirect-to-non-www

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!