# Disable directory browsing
Options -Indexes
DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>
	Options +FollowSymlinks
	RewriteEngine On

	# Send everything that is not a real file/folder to the CodeIgniter front controller
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA]

	# Ensure Authorization header is passed along
	RewriteCond %{HTTP:Authorization} .
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

<IfModule !mod_rewrite.c>
	ErrorDocument 404 index.php
</IfModule>

ServerSignature Off
