I have instrucions in htaccess to make all requests to go through index.php file. But it disables access to folders and files. So if I try to go to /uploads/products/thumbs/file.png it leads to index.php?lang=en&category=uploads§ion=products (etc) instead of getting the file from the folder I added RewriteCond to add exception for existing files and folders, but it doesn't work for some reason.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_\-\.\(\)]+)?$ index.php?lang=en&category=$1§ion=products [QSA,L]
RewriteRule ^([a-z0-9_\-\.\(\)]+)/([a-z0-9_\-\.\(\)]+)?$ index.php?lang=en&category=$1&category_lvl2=$2§ion=products [QSA,L]
RewriteRule ^([a-z0-9_\-\.\(\)]+)/([a-z0-9_\-\.\(\)]+)/([a-z0-9_\-\.\(\)]+)?$ index.php?lang=en&category=$1&category_lvl2=$2&category_lvl3=$3§ion=products [QSA,L]