Project

General

Profile

« Previous | Next » 

Revision 8440

web/**/.htaccess: no-replacement RewriteRules: Use just ^ as the match string because there is no need to actually match characters. This also makes it easy to visually tell what is a no-replacement RewriteRule vs. a RewriteRule that matches the entire path.

View differences:

web/.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 ^ - [discardpath,env=REQUEST_URI_no_/:%1,noescape]
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 ^ - [discardpath,noescape,last]
47 47

  
48 48
## specific to /
49 49

  

Also available in: Unified diff