Project

General

Profile

« Previous | Next » 

Revision 7952

web/vegpath/.htaccess: mod_rewrite: Don't run any further rewrite rules if path exists, to avoid needing to add RewriteConds to each RewriteRule to check if the path exists

View differences:

.htaccess
9 9
RewriteOptions inherit
10 10
RewriteBase /
11 11

  
12
# don't rewrite existing paths
13
RewriteCond %{REQUEST_FILENAME} -d [ornext]
14
RewriteCond %{REQUEST_FILENAME} -f [ornext]
15
RewriteCond %{REQUEST_FILENAME} -l [ornext]
16
RewriteCond $0 ^index.php/
17
RewriteRule ^.*$ - [last]
18

  
12 19
# unknown paths
13
RewriteCond %{REQUEST_FILENAME} !-d
14
RewriteCond %{REQUEST_FILENAME} !-f
15
RewriteCond %{REQUEST_FILENAME} !-l
16
RewriteCond $0 !^index.php
17 20
RewriteRule ^.*$ index.php/$0

Also available in: Unified diff