How to make a rewrite rule so that all files (examples):
/js/arquivo.teste.map
/css/arquivo.diferente.teste.map
/y.diferente_123.map
Do not exist with .map extension to be rewritten to a single file type:
/webapp/css/404.map
I tried this but it did not work, it is entering the system folder and dropping into the default 404 error page, and trying to execute an "exampleMap" method:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/webapp/
RewriteRule ^(.*)$ /webapp/sistema/public/v2/$1
RewriteCond %{REQUEST_URI} ^(\.map)$
RewriteRule ^(.*)$ /webapp/sistema/public/css/404.map [QSA]
Note the error you are experiencing when accessing an address of type: domain.local / webapp / example.map :