AntonioNigro/respondCMS/master/sites/common/.htaccess - Htaccess File

AntonioNigro/respondCMS/master/sites/common/.htaccess

Options -Multiviews
Options -Indexes
Options +FollowSymLinks

RewriteEngine on 

# Some installations (e.g. Godaddy) require RewriteBase for domains
# RewriteBase /

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

# Redirect for API
RewriteCond %{REQUEST_URI} !api\dispatch.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api/.* api/dispatch.php [L,QSA]

# Remove PHP extension
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}.php -f 
RewriteRule ^(.*)$ $1.php

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache