Project

General

Profile

« Previous | Next » 

Revision 7957

web/vegpath/.htaccess: Use the simpler ErrorDocument directive instead of a catch-all RewriteRule to handle non-filesystem paths

View differences:

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

  
19
# unknown paths
20
RewriteRule ^.*$ index.php/$0
18
# non-filesystem paths
19
ErrorDocument 404 /index.php

Also available in: Unified diff