Fix Google Adsense PSA with .htaccess

If you are a new publisher, there is a chance such as http://www.yourdomain.com display the ads correctly while http://yourdomain.com is not. I’ve myself experienced this everytime I have my new website running.

I’ve searched the net to learn this but the most common answer is that possibly have not crawled your website properly. The quick suggestion is to support and let them fix it, or you can do it at your side by configuring the .htaccess file. The reason is that, will see both www.yourdomain and yourdomain.com as two unique address and treat them accordingly, so it’s depend on how frequent either the first or the second is most visited.

I’ve read somewhere about a tips that suggests webmasters to stick to a single reference to any of his websites. If you love the www, than always use it wherever possible, during URL submission, ads or whatever.

Let’s assume that you would like to refer yourdomain as http://yourdomain.com, then in the .htaccess file, insert the following rewrite command:

RedirectMatch permanent ^http://www.yourdomain.com$ http://yourdomain.com else, if you love to attach the www in your address, use this:

RedirectMatch permanent ^http://yourdomain.com$ http://www.yourdomain.com
Ok fo those who have no idea about .htaccess file, it can be accessed at your root level such as: /home/youraccount/public_html/.htaccess or you can create one using notepad if you don’t have any.

Posted June 5th, 2006 by mightyhitter under Google Adsense, SEO

 

Leave a Reply