I am using WordPress premium press theme website.
I am using a sub-domain for mobile website m.coupontales.com
, and added this code into .htaccess
file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^m\. [NC]
RewriteCond %{HTTP_USER_AGENT} !(android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera\smobile|palmos|webos) [NC]
RewriteRule ^ http://www.coupontales.com%{REQUEST_URI} [L,R=302]
But as a site admin when I go to m.coupontales.com/wp-admin
, it is redirecting to www.coupontales.com
. How can I block my visits ?