lundi 2 mars 2015

Redirect with htaccess from www to non www ssl

I need to redirect links from www to non www and force all links https.. Right now I have only this rule :





#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]



Problem is that I bought an ssl for domain.com only, and some google results still show www links.





Aucun commentaire:

Enregistrer un commentaire