summaryrefslogtreecommitdiff
path: root/.htaccess
blob: 47f663d5c221bcbfd11df2dad04898e352a83049 (plain)
1
2
3
4
5
6
7
8
9
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,QSA]
	RewriteRule ^download/file/(.*)$          download_file.php?attachment_id=$1  [L,QSA]
</IfModule>