lundi 12 mai 2014

apache 2 - how to redirect all www requests to url without www


Vote count:

0




I want to redirect all www..com request to .com. I have the following virtual hosts listed by they do not appear to work for this. What needs to be added to get this to work with apache 2. Also all non-ssl reditects get sent to ssl which is working - however removing the www is not working



<VirtualHost *:80>
ServerName http://ift.tt/1nEYcYo
Redirect permanent / http://ift.tt/1gefuMg
</VirtualHost>

<VirtualHost *:443>
ServerName http://ift.tt/1nEYcYo
Redirect permanent / http://ift.tt/1gefuMg
</VirtualHost>


asked 6 mins ago






Aucun commentaire:

Enregistrer un commentaire