summaryrefslogtreecommitdiff
path: root/htaccess.sample
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-31 20:36:02 +0100
committerSarven Capadisli <csarven@status.net>2009-10-31 20:36:02 +0100
commitd6b31d42c7e315d18d40ed6ad30f7d90feeba341 (patch)
treedd4c94efffa9a31ea577a845b1477476559cf129 /htaccess.sample
parentcd4c1267ff1355710822c6b107e576c500bf3605 (diff)
parent44ce8e2fcd1eba0d0f2723c246c1a021614e2763 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'htaccess.sample')
-rw-r--r--htaccess.sample8
1 files changed, 8 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample
index 37eb8e01e..91ae9da9b 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]