I have tried many rules and did well search to exclude a directory from the following rule in vain:
RewriteCond %{REQUEST_FILENAME} !-d
Currently this worked perfectly from my web app but I need now to exclude only one folder called "vendors"
I have tried many rules and did well search to exclude a directory from the following rule in vain:
RewriteCond %{REQUEST_FILENAME} !-d
Currently this worked perfectly from my web app but I need now to exclude only one folder called "vendors"
You can use:
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} ^/vendors/?$ [NC]
Which does exactly what you are asking.
What about next :
RewriteCond %{DOCUMENT_ROOT}/vendors !-d [NC]
With this rule request that contains "vendors" will be processed, if vendors not directory.
You can use this Rule :
RewriteCond %{REQUEST_URI} !^/vendors/.*$ [NC]