Project

General

Profile

« Previous | Next » 

Revision 8502

web/.htaccess: setting REQUEST_URI_no_/: use one RewriteCond instead of two since the regexps can be combined

View differences:

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

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

  
27 26
# translate subdomain to path

Also available in: Unified diff