summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-06-10 18:54:00 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-06-10 18:54:00 +0000
commit1d1006ee43aba6411d2abe33a67185267523891d (patch)
treed4b5ae3bff2f7581584027e5367fb50c69cacf09 /.htaccess
parent3825d5183fedd98fd55e06ee093904fb03040063 (diff)
downloadliberty-1d1006ee43aba6411d2abe33a67185267523891d.tar.gz
liberty-1d1006ee43aba6411d2abe33a67185267523891d.tar.bz2
liberty-1d1006ee43aba6411d2abe33a67185267523891d.zip
some pretty url stuff
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess10
1 files changed, 10 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..4766975
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,10 @@
+<IfModule mod_rewrite.c>
+ RewriteEngine on
+# Uncomment this if mod_rewrites are not working for you. some hosting services have cranky mod_rewrite
+# RewriteBase /liberty/
+ RewriteCond %{SCRIPT_FILENAME} -f [OR]
+ RewriteCond %{SCRIPT_FILENAME}/index.php -f
+ RewriteRule ^(.*)$ - [L]
+ RewriteRule ^view/file/(.*)$ view_file.php?attachment_id=$1 [L]
+ RewriteRule ^download/file/(.*)$ download_file.php?attachment_id=$1 [L]
+</IfModule>