michaelhayashi/IEEE-Website/master/.htaccess - Htaccess File

michaelhayashi/IEEE-Website/master/.htaccess

# Prevent Prying Eyes from Viewing Directory Contents
Options All -Indexes

# Handle Error 404 with a Special Page
ErrorDocument 404 /404.php
RedirectMatch 404 /.git

RewriteEngine On                                                                                                                                                                                                                                                                                                                                                                            
RewriteBase /                                                                                                                                                                                                                                                                                                                                                                               

# add .html file extension                                                                                                                                                                                                                                                                                                                                                                  
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L]

# Restrict Portions of the Site (Once Running)
#AuthType Basic
#AuthName "restricted area"
#AuthUserFile/usr/local/var/www/html/.htpasses
#require valid-user

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache