ytyukhnin/respond/master/sites/common/.htaccess - Htaccess File

ytyukhnin/respond/master/sites/common/.htaccess

Options +FollowSymLinks 
Options -Indexes
RewriteEngine On

ErrorDocument 400 /page/error
ErrorDocument 401 /page/error
ErrorDocument 403 /page/error
ErrorDocument 404 /page/error
ErrorDocument 500 /page/error

#ref: http://stackoverflow.com/questions/1698464/mod-rewrite-to-remove-php-but-still-serve-the-php-file
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}.php -f 
RewriteRule ^(.*)$ $1.php

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache