Force www. in your URL using .htaccess
Insert this into the top of your .htaccess file, making sure that ‘RewriteEngine On’ comes before it:
RewriteCond %{HTTP_HOST} !^www\.jhuskisson\.com [NC]
RewriteRule ^(.*)$ http://www.jhuskisson.com/$1 [R=301,L]
Replace jhuskisson.com with your chosen domain and make sure if you are placing any full stops within the first line to enter a backslash before each full stop. This will prevent the code from not working.
There are 6 responses to this post so far
-
Ryan Christensen wrote: -
Maciej Pawłowski wrote: -
Daniel wrote: -
kyle renfrow wrote:


