]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
mod_rewrite rule for getfile
authorJeffery To <jeffery.to@gmail.com>
Thu, 8 Oct 2009 03:45:32 +0000 (11:45 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 22 Oct 2009 04:46:57 +0000 (12:46 +0800)
htaccess.sample

index 37eb8e01ec01f1169159a1b920c265c00b9bfdc2..91ae9da9be19b7613abb596b85a015be947ab59b 100644 (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]