Friday, 11 July 2014

How to redirect www traffic to non-www url in Joomla

One of the first things you should set up when putting together a Joomla website is a redirect instruction in the .htaccess file.

The purpose of this instruction is to redirect URL's to This ensures that SEO and anyone copying a link to your site will always use the same URL of This is also especially important when accumulating Facebook 'Likes' as they will accumulate from one URL address rather than two.

 RewriteEngine On   
 RewriteCond %{HTTP_HOST} !^mysite\.com   
 RewriteRule (.*)$1 [R=301,L]  

No comments:

Post a Comment