Remove leading slash from match:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^m\.skynet\.com$
RewriteCond %{REQUEST_URI} !^/mobile/final/
RewriteRule ^(.*)$ /mobile/final/$1 [L,NC]
.htaccess
is per directory directive and Apache strips the current directory path (thus leading slash) fromRewriteRule
URI pattern.- You need
RewriteCond %{REQUEST_URI} !^/mobile/final/
to prevent looping.