I have a problem. I need my website to only be entered from mobile devices, and if they enter from a desktop site that redirects it to another page, what I achieve is this,
RewriteCond %{QUERY_STRING} !^android
RewriteCond %{HTTP_USER_AGENT} "Windows" [NC]
RewriteRule ^$ https://google.com [L,R=302]
it works fine, but if you enter another subdirectory like mywebsite.com/cats can be entered from the desktop, how can I block the subdirectories and redirect it to another website