Redirect users to your preferred URL

If your site can be accessed both with and without the ‘www.’ prefix, you can use one of the following settings to redirect users to your preferred URL, either WITH or WITHOUT the ‘www.’ prefix. Choose ONLY one option:

– To redirect all users to access the site WITH the ‘www.’ prefix, (http://joomlatags.org/… will be redirected to http://www.findmore.ca/…), please add the following code to your .htaccess file:

 ·                       RewriteCond %{HTTP_HOST} ^fidnmore.ca$ [NC]
 ·                       RewriteRule ^(.*)$ http://www.findmore.ca/$1 [L,R=301]

To redirect all users to access the site WITHOUT the ‘www.’ prefix, (http://www.findmore.ca/… will be redirected to http://findmore.ca/…) please add the following code to your .htaccess file:

 ·                       RewriteCond %{HTTP_HOST} ^www.findmore.ca$ [NC]
 ·                       RewriteRule ^(.*)$ http://findmore.ca/$1 [L,R=301]

please remember to change findmore.ca to your domain name.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *