Skip to content

Commit

Permalink
refs #1828 : modify - rewrite rules
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jul 17, 2015
1 parent d611fbf commit 3f48279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions interface/blog/checkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function clearCache() {
RewriteRule ^(.+[^/])$ $1/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(thumbnail)/([0-9]+/.+)$ user/cache/$1/$2 [L]
RewriteRule ^attach/([0-9]+/.+)$ user/attach/$1 [L]
RewriteRule ^(.*)$ rewrite.php [L,QSA]
";
$fp = fopen($filename, "w");
Expand Down
4 changes: 2 additions & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1423,13 +1423,13 @@ function fail($msg) {
#SetEnv PRELOAD_CONFIG 1
RewriteEngine On
RewriteBase {$path}/
RewriteRule ^(thumbnail)/([0-9]+/.+)\$ 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]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])\$ \$1/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(thumbnail)/([0-9]+/.+)\$ cache/\$1/\$2 [L]
RewriteRule ^attach/([0-9]+/.+)\$ user/attach/\$1 [L]
RewriteRule ^(.*)\$ rewrite.php [L,QSA]
EOF;
}
Expand Down

0 comments on commit 3f48279

Please sign in to comment.