<Files *.db>
	# Deny access to tomo's database
	Deny from all
</Files>

<Files *.xml>
	# Deny access to query definitions
	Deny from all
</Files>

<IfModule mod_autoindex.c>
	# Don't do any directory listings here
	IndexIgnore *
</IfModule>

<IfModule mod_expires.c>
	# Enable image client-side cache
	ExpiresActive On
	ExpiresByType image/png "access plus 15 minutes"
	ExpiresByType image/jpeg "access plus 15 minutes"
	ExpiresByType image/gif "access plus 15 minutes"
</IfModule>

RewriteEngine On

# Redirect easier to remember viewer URL ".../tomo/view"
RewriteRule ^view$ %{REQUEST_URI}/../?view=index [R,L]
