WWW / Ne-WWW - CSS-triki

Anonim

Moral bi res delati eno ali drugo. Zaradi doslednosti in tudi SEO-jev.

Prisili www.

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

Odstranite www.

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