I have it

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php?route=$1&mobile=false [L,QSA] 

I need that when the request came from the m.site.ru subdomain, this happened

 RewriteRule ^(.*)$ index.php?route=$1&mobile=true [L,QSA] 

    1 answer 1

    Something like this?

     RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{HTTP_HOST} ^m\.site\.ru$ [NC] RewriteRule ^(.*) index.php?route=$1&mobile=true [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php?route=$1&mobile=false [L,QSA] 
    • for some reason it does not work when you click on the link m.site.ru - it gives an error - Oleg
    • four
      it all worked, I'm just a sucker - Oleg