/ Published in: Apache
![](/img/icon_sav.png?v3)
This redirect is domain independent.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]