This blog is NOFOLLOW Free!

The magic space of the IT find what you seek or get lost

19Apr/103

Howto disable easy-adsenser if wptouch is active

WpTouch is a great plugin, if you want to optimize your wordpress blog for mobile content. It also comes with an integrated adsense option for the mobile content.
This is of course much better then the normal google ads.

But now comes the problem: In my blogs i often use easy-adsenser as the adsense mangement software. But if this is active, and you also activate the adsense option in WpTouch you will see ALL ads in the mobile view (the one from WpTouch and the one(s) from easy-adsenser). This can also be perhaps against the terms of google, depending how you setup easy-adsenser.

I looked a bit around in the code and found an easy we how to solve this problem.

30Dec/070

WordPress 2.3 no working mod_rewrite

I wanted just set up my new blog and use a permalink structure like this:

/%category%/%postname%/

The strange thing was that it want work. mod_rewrite is enabled from my hoster, other sites work with it without any problems. If I used a structure with the "index.php" in it, it worked without any problem. I googled a lot and read very much of the docu. Most of them only say, that the mod_rewrite, followsymlinks, and such things have to be enabled. But this is all how it should be! So where is the problem?

I don't really know it. All the docs says, that the new wordpress does not need an special .htaccess file for this kind of stuff. Or perhaps I always have over read it? I don't know. After a while I decided to put on a .htaccess which looks like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

After I did it, it WORKED. I hope I will not get any other problems with this little code, but till know I am happy with it. It simply works 😉