Forum Moderators: martinibuster

Message Too Old, No Replies

URL Channels

There is a difference...

         

DigiChaos

10:04 pm on May 23, 2006 (gmt 0)

10+ Year Member



Just a heads up about adsense impressions coming from nowhere...

I had some URL channels setup, all with the "www" prefix (www.example.com). I was seeing that the sum of my URL channel impressions did not add up to the total impressions reported.

As a test I added more URL channels without the "www" prefix (example.com). And I found out that the counts were off between www and non-www. Go figure.

LifeinAsia

10:16 pm on May 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



AFAIK, with www.example.com only counts clicks from www.example.com while example.com will count click from both example.com abd www.example.com.

dhiggerdhigger

12:17 pm on May 24, 2006 (gmt 0)

10+ Year Member



This is another good reason to "force canonical URLs" - make user agents use www.example.com even if they try example.com. (The other good reason is that Google may develop two different PageRanks for your www. and non-www. web addresses.)

In .htaccess, on an Apache server, this works for me:

RewriteEngine on 
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{HTTP_HOST}!^$
RewriteRule ^(.*) http://www.example.com/$3 [L,R=301]