creativeer/php-starter/master/.htaccess - Htaccess File

creativeer/php-starter/master/.htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

# Block access to directories without a default document.
# You should leave the following uncommented, as you shouldn't
# allow anyone to surf through every directory on your server which
# may includes rather private places such as the CMS's directories.
<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache