<IfModule mod_rewrite.c>
	<IfModule mod_negotiation.c>
		# Prevent the access to the file listing in the current directory
		Options -Indexes
	</IfModule>

	# Direct all requests to /public folder
	RewriteEngine On
	RewriteCond %{REQUEST_URI} !/public
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
	# Fallback and deny all by default
	Deny from all
</IfModule>