# 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>
