From: Jeffery To Date: Thu, 8 Oct 2009 03:45:32 +0000 (+0800) Subject: mod_rewrite rule for getfile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=834a876dd0998464cade1cdd0fe2fe8c9ab17dcc;p=quix0rs-gnu-social.git mod_rewrite rule for getfile --- diff --git a/htaccess.sample b/htaccess.sample index 37eb8e01ec..91ae9da9be 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -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]