I used w3total cache for http://nirbhik.com . in my country bandwidth is precious and operamini is very popular. So developed http://m.nirbhik.com optimized for opera. Now I cant redirect nirbhik.com to m.nirbhik.com when its mobile device. I wrote a plugin that checks if its a mobile device then redirects to the mobile website.
The problem is it redirects for the first time. Second time the code is not run. I think because its cached the plugin does not even run. Then I required the plugin file from the wordpress index.php file, still the same result. Can someone please help?
edit: the plugin works as expected once w3total cache is deactivated and all cache is removed. So is there a way to execute the plugin while w3 total cache is active?
In “Manage User Agent Groups” try check “Theme Pass-through”.