Forum Moderators: phranque

Message Too Old, No Replies

Subdomain redirect

Redirect to www

         

PeteM

11:19 am on Feb 9, 2006 (gmt 0)

10+ Year Member



My web logs show people accessing my site without the www subdomain. If I use .htaccess to redirect mydomain.com to www.mydomain.com will it be reflected in my stats? Is there a better way of doing this?

Thanks, Pete

jdMorgan

3:00 pm on Feb 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Adding the redirect will result in two requests being shown in your stats: The initial one to example.com, which your server will respond to with a 301 redirect, and a resulting second request to the correct domain.

Take the long-term view and install the redirect; This will consolidate your PageRank, link-popularity, and search engine listings, and help to prevent people from linking to the 'wrong' domain in the future. This is one of the first things to do when you create a new site, and should be done before putting the site on-line.

Jim

PeteM

9:29 pm on Feb 9, 2006 (gmt 0)

10+ Year Member



Cheers Jim - job done.

Pete