问题
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:
- Go to subscriptions
- Click the domain you would like to manage
- Go to websites & domains
- At the bottom of the page, find your domain (you will see "Hosting Settings" link next to it)
- Click on "Hosting Settings"
- Select "None" in the "Preferred domain"-dropdown
- Save the settings by clicking "OK"
Hope it helps someone!
来源:https://stackoverflow.com/questions/17783082/plesk-11-forcing-redirect-to-non-www