2

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"

mediaroot
  • 435
  • 8
  • 17
  • Provide more details. What is your directory structure? What do you actually want to achieve? Where are you failing? Do you have access to server logs? – hjpotter92 Nov 30 '15 at 11:13

3 Answers3

1

You can use:

RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} ^/vendors/?$ [NC]

Which does exactly what you are asking.

Croises
  • 18,570
  • 4
  • 30
  • 47
1

What about next :

RewriteCond %{DOCUMENT_ROOT}/vendors !-d [NC]

With this rule request that contains "vendors" will be processed, if vendors not directory.

Sergio Ivanuzzo
  • 1,820
  • 4
  • 29
  • 59
1

You can use this Rule :

RewriteCond %{REQUEST_URI} !^/vendors/.*$ [NC]