Project

General

Profile

« Previous | Next » 

Revision 8054

web/main/.htaccess: Name the lowercased versions of dirs with a leading . (to make them hidden) instead of a trailing _ , to avoid having each dir listed twice in a row in the dir index

View differences:

web/main/bien2_
1
link BIEN2
2 0

  
web/main/vegx_
1
link VegX
2 0

  
web/main/vegbien_
1
link VegBIEN
2 0

  
web/main/salvias_
1
link SALVIAS
2 0

  
web/main/tnrs_
1
link TNRS
2 0

  
web/main/tcs_
1
link TCS
2 0

  
web/main/dwc_
1
link DwC
2 0

  
web/main/vegbank_
1
link VegBank
2 0

  
web/main/.salvias
1
link SALVIAS
0 2

  
web/main/.vegx
1
link VegX
0 2

  
web/main/.dwc
1
link DwC
0 2

  
web/main/.vegbank
1
link VegBank
0 2

  
web/main/.vegbien
1
link VegBIEN
0 2

  
web/main/.tnrs
1
link TNRS
0 2

  
web/main/.tcs
1
link TCS
0 2

  
web/main/.htaccess
19 19

  
20 20
# use separate lowercase version when available
21 21
RewriteCond %{DOCUMENT_ROOT}/$1 !-d
22
RewriteCond %{DOCUMENT_ROOT}/$1_ -d
23
RewriteRule ^([^/]*)(/.*)$ $1_$2 [discardpath,noescape]
22
RewriteCond %{DOCUMENT_ROOT}/.$1 -d
23
RewriteRule ^([^/]*)(/.*)$ .$1$2 [discardpath,noescape]
24 24

  
25 25
# don't rewrite existing paths
26 26
RewriteCond %{REQUEST_FILENAME} -d [ornext]
web/main/.bien2
1
link BIEN2
0 2

  

Also available in: Unified diff