Skip to content

Commit

Permalink
refs #1828 : bugfix - correct setup.php rewrite file
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jun 15, 2016
1 parent 679b9ec commit cdaaa51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ function fail($msg) {
case 'ISAPI':
// Users must copy these rules to IsapiRewrite4.ini
$htaccessContent = <<<EOF
RewriteRule ^{$path}/(thumbnail)/([0-9]+/.+)\$ {$path}/cache/\$1/\$2 [L,U]
RewriteRule ^{$path}/(thumbnail)/([0-9]+/.+)\$ {$path}/user/cache/\$1/\$2 [L,U]
RewriteRule ^{$path}/attach/([0-9]+/.+)\$ {$path}/user/attach/\$1 [L,U]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^{$path}/user+/+(cache)+/+(.+[^/]).(cache|xml|txt|log)\$ - [NC,F,L,U]
Expand All @@ -1400,7 +1400,7 @@ function fail($msg) {
case 'IISRewrite':
// Users must import these rules into URL Rewrite module.
$htaccessContent = <<<EOF
RewriteRule ^{$path}/(thumbnail)/([0-9]+/.+)\$ {$path}/cache/\$1/\$2 [L]
RewriteRule ^{$path}/(thumbnail)/([0-9]+/.+)\$ {$path}/user/cache/\$1/\$2 [L]
RewriteRule ^{$path}/attach/([0-9]+/.+)\$ {$path}/user/attach/\$1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^{$path}/user+/+(cache)+/+(.+[^/]).(cache|xml|txt|log)\$ - [NC,F,L]
Expand All @@ -1419,7 +1419,7 @@ function fail($msg) {
#SetEnv PRELOAD_CONFIG 1
RewriteEngine On
RewriteBase {$path}/
RewriteRule ^(thumbnail)/([0-9]+/.+)\$ cache/\$1/\$2 [L]
RewriteRule ^(thumbnail)/([0-9]+/.+)\$ user/cache/\$1/\$2 [L]
RewriteRule ^attach/([0-9]+/.+)\$ user/attach/\$1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^user+/+(cache)+/+(.+[^/]).(cache|xml|txt|log)\$ - [NC,F,L]
Expand Down

0 comments on commit cdaaa51

Please sign in to comment.