How to Exclude Directory Effectively from Mod_REWRITE

Posted by Codex73 on Stack Overflow See other posts from Stack Overflow or by Codex73
Published on 2010-04-05T01:40:10Z Indexed on 2010/04/05 1:43 UTC
Read the original article Hit count: 1476

The problem: 'css' directory gets rewritten also to 'index.php' and displays somehow 'index.php' without style. Should display error as it has it's own htaccess with 'Options All -Indexes'

Facts:

'css' subdir doesn't have an index file.(no htaccess on this folder)

'store' subdir does have index file and doesn't get rewritten. (no htaccess on this folder)

RewriteEngine On
RewriteBase   /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.+/?$ index.php [NC,L]

How can i effectively remove 'css' and 'css/' from the above rule? Tried some variations already.

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about url-rewriting