Posted By

vigoncas on 04/28/10


Tagged

redirect htaccess apache www


Versions (?)

.htaccess redirect url without www prefix


 / Published in: Apache
 

  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  

You need to login to post a comment.