Project

General

Profile

« Previous | Next » 

Revision 8441

web/**/.htaccess: no-replacement RewriteRules: Removed the standard [discardpath,noescape] flags because they add unnecessary clutter and are not needed for this type of rule. Note that these flags are still required on regular RewriteRules which have a replacement string.

View differences:

.htaccess
20 20
# set REQUEST_URI_NO_SLASH
21 21
RewriteCond %{REQUEST_URI} ^/$ [ornext]
22 22
RewriteCond %{REQUEST_URI} ^(.*)$
23
RewriteRule ^ - [discardpath,env=REQUEST_URI_no_/:%1,noescape]
23
RewriteRule ^ - [env=REQUEST_URI_no_/:%1]
24 24

  
25 25
# translate subdomain to path
26 26
RewriteCond %{HTTP_HOST} !=vegbiendev.nceas.ucsb.edu
......
43 43
# don't rewrite existing paths
44 44
RewriteCond %{REQUEST_FILENAME} -d [ornext]
45 45
RewriteCond %{REQUEST_FILENAME} -f
46
RewriteRule ^ - [discardpath,noescape,last]
46
RewriteRule ^ - [last]
47 47

  
48 48
## specific to /
49 49

  

Also available in: Unified diff