andfinally/metro-quizzes/master/.htaccess
# Stop directory browsing
Options -Indexes
DirectoryIndex index.php index.htm index.html
# html5 pushstate (history) support:
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule (.*) index.php [L,QSA]
# Somebody else suggested this version
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
# RewriteRule (.*) index.htm [L,QSA]
</ifModule>
On Github License
Files
Download PDF of Htaccess file