summaryrefslogtreecommitdiff
path: root/.htaccess.dist
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-14 12:18:34 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-14 12:18:34 +0200
commit6de3759a1b7a74492845c76e1f0bd1078e2220c7 (patch)
tree96975cbac21a72f29934013e1e6bd6f4711f60d7 /.htaccess.dist
parent706882dcf32358de6c9300ced7b5fcfa9ba28771 (diff)
downloadrpg-6de3759a1b7a74492845c76e1f0bd1078e2220c7.tar.gz
rpg-6de3759a1b7a74492845c76e1f0bd1078e2220c7.tar.bz2
URL rewriting for media files
This patch adds nicer URLs for media files (for fetch.php and detail.php) !IMPORTANT! Users of rewrite mode 1 need to adjust their .htaccess See .htaccess.dist for an example darcs-hash:20050814101834-7ad00-37ef1dea00affc9d808d9ee1289fa7454199cd24.gz
Diffstat (limited to '.htaccess.dist')
-rw-r--r--.htaccess.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/.htaccess.dist b/.htaccess.dist
index c77ee05f0..45747c1ca 100644
--- a/.htaccess.dist
+++ b/.htaccess.dist
@@ -12,6 +12,8 @@ Options -Indexes
## Comment these rules in if you want to have nice URLs
#RewriteEngine on
+#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
+#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
#RewriteRule ^$ doku.php [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d