Latest Register Log In

+ Advanced Search

Redirecting to www

Redirecting to www
By
05/10/11 (Edited 01/19/14)

Sometimes you may want to force your site to load through www version when people try to access it without the www part of the URL. This will prevent splitting up pagerank between www and non-www links, and avoid the possibility of duplicate content.

First, if your site is not currently using www links internally, fix that by going to Admin Panel -> Settings -> System Configuration -> "WSN Website Details:" and changing the URL to include www there.

To force a redirect for people who still land on a non-www version, go to Admin Panel -> Settings -> SEO. Make you have URL rewriting set to yes there, then enter these lines in the "Other .htaccess content" box:

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




Description Making the non-www version of your domain redirect to the www. version of it.
Rating
Views 543 views. Averaging 0 views per day.