.htaccess redirect url without www prefix


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



Copy this code and paste it in your HTML
  1. # Redirect without www prefix
  2. RewriteCond %{HTTP_HOST} ^www.happyideas.com$ [NC]
  3. RewriteRule ^(.*)$ http://happyideas.com/$1 [r=301,NC,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.