summaryrefslogtreecommitdiff
path: root/.htaccess
blob: d74204ebf220f584deedb0a44f77973089e2ba72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Uncomment this if you have problems with RewriteRule view. See 'PrettyUrls' on BitWeaver's wiki.
# Options -MultiViews
<IfModule mod_rewrite.c>
	RewriteEngine  on
#	RewriteBase	/pigeonholes/
	RewriteCond	%{SCRIPT_FILENAME}  -f [OR]
	RewriteCond	%{SCRIPT_FILENAME}/index.php    -f
	RewriteRule	^(.*)$            - [L]
	RewriteRule ^([0-9]+)(\&.*)?$  view.php?content_id=$1$2  [L]
	RewriteRule ^structure/(.*)$  view.php?structure_id=$1  [L,QSA]

	RewriteRule ^view/structure/(.*)$  view.php?structure_id=$1  [L,QSA]
	RewriteRule ^view/(.*)$  view.php?content_id=$1  [L,QSA]
	RewriteRule ^(.*)$  index.php?content_id=$1  [L,QSA]
</IfModule>