Project

General

Profile

« Previous | Next » 

Revision 8448

web/**/.htaccess: Removed preprocessing commands that need to run for every dir, because these are now inherited from the outermost .htaccess using InheritBefore. This allows the inner .htaccess files to focus just on the fallback rewrites, without needing lots of boilerplate code (except for the obligatory RewriteEngine/RewriteOptions/SetEnvIf preamble).

View differences:

.htaccess
3 3

  
4 4
SetEnvIf Request_URI ^ innermost_dir=VegBIEN
5 5

  
6
# parse dotpath in the query string
7
RewriteCond %{QUERY_STRING} ^(?!&).+$
8
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$
9
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last]
10

  
11
# don't rewrite existing paths
12
RewriteCond %{REQUEST_FILENAME} -d [ornext]
13
RewriteCond %{REQUEST_FILENAME} -f
14
RewriteRule ^(?!/).+$ - [discardpath,noescape,last]
15

  
16
# handle DirectoryIndex subrequests
17
RewriteRule ^index$() $1 [discardpath,noescape]
18

  
19 6
# dir without trailing / is provided as an absolute filesystem path
20 7
RewriteCond %{ENV:innermost_dir} =VegBIEN
21 8
RewriteCond $0 ^/ [ornext]

Also available in: Unified diff