Htaccess File

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

REQUEST_FILENAME, REQUEST_URI, THE_REQUEST
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]
Exit mobile version