Revision 8431
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
17 | 17 |
# remove linewraps used to create a newline for Google spreadsheets |
18 | 18 |
RewriteRule ^_-(.*)$ /$1 [discardpath,noescape,last,redirect] |
19 | 19 |
|
20 |
# set REQUEST_URI_NO_SLASH |
|
21 |
RewriteCond %{REQUEST_URI} ^/$ [ornext] |
|
22 |
RewriteCond %{REQUEST_URI} ^(.*)$ |
|
23 |
RewriteRule ^.*$ - [discardpath,env=REQUEST_URI_NO_SLASH:%1,noescape] |
|
24 |
|
|
20 | 25 |
# translate subdomain to path |
21 | 26 |
RewriteCond %{HTTP_HOST} !=vegbiendev.nceas.ucsb.edu |
22 | 27 |
RewriteCond %{HTTP_HOST} ^(.*)\.([^.]*\.[^.]*)$ |
Also available in: Unified diff
web/.htaccess: set REQUEST_URI_NO_SLASH for use by translating subdomain to path