RewriteEngine On
RewriteBase /
# Redirect all requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
# Prevent directory listing
Options -Indexes
# Secure config and includes
Order Allow,Deny
Deny from all
Order Allow,Deny
Deny from all