Given a regular expression for the .htaccess file: ( RewriteRule ^(.*)$ index.php [L,QSA]) , which ignores all characters after the root path ( index.php handler), how to make it so that png files are not ignored css files. Tried like this: ^(.[^(png|css)])$ , does not work.
- htaccess give sdes completely - Naumov
|
1 answer
not strong in htaccess, but I saw it in one engine
# если директория или файл существуют, использовать их напрямую RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d - I tried it like this, but the images disappear, ^ (. *) $ index.php [L, QSA], blocks all connected styles, js and pictures - Denis Stepanyuk
- Although if you swap lines, everything works - Denis Stepanyuk
|