WWW / Nei-WWW - CSS-triks

Anonim

Du burde virkelig gjøre det ene eller det andre. For konsistens, så vel som SEO, skyld.

Tving www.

RewriteEngine On RewriteCond %(HTTP_HOST) ^your-site.com (NC) RewriteRule ^(.*)$ http://www.your-site.com/$1 (L,R=301)

Fjern www.

RewriteEngine On RewriteCond %(HTTP_HOST) !^your-site.com$ (NC) RewriteRule ^(.*)$ http://your-site.com/$1 (L,R=301)