class b

/ Published in: HTML
Save to your folder(s)

strips the www from all URLs on your domain

Copy this code and paste it in your HTML
  1. RewriteEngine on
  2. RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  3. RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  4. RewriteBase /


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.