Htaccess File

andfinally/metro-quizzes/master/.htaccess

DOCUMENT_ROOT, REQUEST_FILENAME, REQUEST_URI
# 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>
Exit mobile version