eandriol/webapp-template/master/src/htdocs/api/.htaccess - Htaccess File

eandriol/webapp-template/master/src/htdocs/api/.htaccess

RewriteEngine On
RewriteBase /api/

#RewriteCond %{THE_REQUEST} info.php$
#RewriteRule info.php - [F]

RewriteCond %{REQUEST_URI} info.html$
RewriteRule info.html info.php [L]

RewriteCond %{REQUEST_URI} info.json$
RewriteRule info.json info.php [L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]

RewriteRule ^.*$ index.php [L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI, THE_REQUEST

Comments

Apache