Project

General

Profile

« Previous | Next » 

Revision 8504

web/.htaccess: renamed REQUEST_URI_no_/ to REQUEST_URI_no_extra_/ to clarify that only an excess / is removed

View differences:

.htaccess
20 20
RewriteRule ^_-(.*)$ /$1 [discardpath,noescape,last,redirect,qsappend]
21 21

  
22 22
## translate subdomain to path
23
# set REQUEST_URI_no_/
23
# set REQUEST_URI_no_extra_/
24 24
RewriteCond %{REQUEST_URI} ^(?:/|(.*))$
25
RewriteRule ^ - [env=REQUEST_URI_no_/:%1]
25
RewriteRule ^ - [env=REQUEST_URI_no_extra_/:%1]
26 26
# translate
27 27
RewriteCond %{HTTP_HOST} !=vegbiendev.nceas.ucsb.edu
28 28
RewriteCond %{HTTP_HOST} ^(.*)\.([^.]*\.[^.]*)$
29
RewriteRule ^.*$ %{REQUEST_SCHEME}://%2/${subdomain2path:%1}%{ENV:REQUEST_URI_no_/} [discardpath,noescape,last,qsappend]
29
RewriteRule ^.*$ %{REQUEST_SCHEME}://%2/${subdomain2path:%1}%{ENV:REQUEST_URI_no_extra_/} [discardpath,noescape,last,qsappend]
30 30

  
31 31
# use separate lowercase version when available
32 32
RewriteCond %{ENV:innermost_dir} =/

Also available in: Unified diff