NameSilo

AdSense Pros: I have a question

Spaceship Spaceship
Watch

Fka200

Established Member
Impact
64
OK, so I have been having bad luck with adsense and just found out that my site works with adsense, but with the WWW in front of the domain... and another one of my sites works WITHOUT the WWW in front of the domain! Once I take it off, I don't get ads. Is there a fix for this, or just something I have to deal with? Really frustrating yet exciting since I realized the ads might actually be working...... ;) Any advice is appreciated.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
Makes no sense that using the www or not would affect Adsense from working, although its possible that Mediabot crawled one URL but not the other yet...

Anyway, your site should ALWAYS have a permanent redirect from the non-www name to the www name or vice versa unless the two urls have different content. If you're running on an Apache server, you do this in the .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^your-domain\.tld
RewriteRule (.*) http://www.your-domain.tld /$1 [R=301,L]

(this example redirects requests for the non-www url to the corresponding www url)

Helps guard against duplicate content penalties, split page-rank and other issues ...
 
0
•••
Hey,

For the sites that dont work, try pressing ctrl + f5, I had this problem - its just a cache thing.

Let me know how you go with that :)
 
0
•••
ChrisChris said:
Hey,

For the sites that dont work, try pressing ctrl + f5, I had this problem - its just a cache thing.

Let me know how you go with that :)


The ads work, i did an HTML redirect to the site with the WWW in front of it... but am reading now about the redirect to the .htaccess file or something ;)
 
0
•••
Glad to hear its working for you
 
0
•••
ChrisChris said:
Glad to hear its working for you


.htaccess file had this to get it to work:


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



Hope this helps someone, now hopefully googlebot updates all of this! I appreciate the help guys
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back