Project

General

Profile

« Previous | Next » 

Revision 8503

web/.htaccess: moved set REQUEST_URI_no_/ under translate subdomain to path because it needs to be set right before being used to be accurate

View differences:

web/.htaccess
19 19
# remove linewraps used to create a newline for Google spreadsheets
20 20
RewriteRule ^_-(.*)$ /$1 [discardpath,noescape,last,redirect,qsappend]
21 21

  
22
# set REQUEST_URI_NO_SLASH
22
## translate subdomain to path
23
# set REQUEST_URI_no_/
23 24
RewriteCond %{REQUEST_URI} ^(?:/|(.*))$
24 25
RewriteRule ^ - [env=REQUEST_URI_no_/:%1]
25

  
26
# translate subdomain to path
26
# translate
27 27
RewriteCond %{HTTP_HOST} !=vegbiendev.nceas.ucsb.edu
28 28
RewriteCond %{HTTP_HOST} ^(.*)\.([^.]*\.[^.]*)$
29 29
RewriteRule ^.*$ %{REQUEST_SCHEME}://%2/${subdomain2path:%1}%{ENV:REQUEST_URI_no_/} [discardpath,noescape,last,qsappend]

Also available in: Unified diff