Forum Moderators: martinibuster

Message Too Old, No Replies

adsense problems after mod rewrite (php)

adsense shows german ads after url rewrite for php

         

mikeymiko

5:09 pm on Apr 10, 2005 (gmt 0)

10+ Year Member



I used mod rewrite to change the links for my php pages to a more search engine friendly look.
old link>> mysite.com/links.php?assign=xyz&qry=keyword
new link>> mysite.com/search/keyword
using this rule:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^search/([a-zA-Z0-9_+-]+)/?$ search/links.php?assign=xyz&qry=$1 [L]

I applied this to my main site after testing it on another domain & everything works perfect except for adsense. For my main domain it shows ads in german!
But the old links (at top) work fine still and go to the correct uk adsense.
It is just puzzling me as to why it won't work.

I have tried the same rewrite rules for different domains and the ads were english so i am sure the rewriterule is ok.

I have 2 other domains where the rule seems to work fine with adsense too but on the main site i have the annoying problem.

I have tried different php pages, different link names but for some reason, when i try to apply it to a particular site it shows adsense in german!?

Does anyone know why this is? I have spent hours and hours trying to find a solution.. i just cant see what is making it change language.

The change only applies when i apply it to a particular site, the other 2 sites it works fine on are from the same hosting company and i have even used the same page on these other sites.
On the other sites, i make the change and immediately it goes to G's default ads in english-diplaying 'ads by google', when i refresh the browser a few times it delivers targeted ads in english.

On the main site, i make the change and immediately it goes to G's default ads in GERMAN-sometimes targeted ads in german but always 'google angzeinen'. Only when i refresh my browser a few times does it then switch to english ads and 'ads by google'.

I havn't changed all the url's, the old urls still work, adsense in english and targeted too.
But the new url is the problem.

Then thought it might be the location of the server so..
I sent a request to my hosting company and asked about the servers and this is his reply.
"All servers are either in the UK or the US and IP blocks set-up accordingly,
we don't have any connections with germain hosting"

Server header and browsser header checks are ok too so im really puzzled.

mikeymiko

10:51 am on Apr 11, 2005 (gmt 0)

10+ Year Member



OK, so it looks like nobody can help so far...

If i was to contact google regarding this strange effect with the ads, would it be a bad move?

I'm not sure if they will frown upon the dynamic url change and i'd rather find out here if i can!

Any ideas?