Edit your .htaccess file and add the following:
1 2 3 4 |
# Redirect to wwww RewriteEngine On RewriteCond %{HTTP_HOST} ^[0-9a-zA-Z-]+\.[a-zA-Z]{2,}$ RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |
Edit your .htaccess file and add the following:
1 2 3 4 |
# Redirect to wwww RewriteEngine On RewriteCond %{HTTP_HOST} ^[0-9a-zA-Z-]+\.[a-zA-Z]{2,}$ RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |