mod_rewrite rule for getfile

This commit is contained in:
Jeffery To 2009-10-08 11:45:32 +08:00
parent 3f06bfc042
commit 834a876dd0
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,14 @@
RewriteBase /mublog/
# If your site is private and want to only allow logged-in users to
# be able to download file attachments, uncomment this rule.
#
# If you have a custom attachment path
# ($config['attachments']['path']), change "file/" to match.
#
#RewriteRule ^file/(.*) getfile/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?p=$1 [L,QSA]