stlemme/poi-webservice/master/.htaccess - Htaccess File

stlemme/poi-webservice/master/.htaccess

RewriteEngine on

DirectorySlash On

RewriteBase /api/poi

#RewriteCond %{REQUEST_FILENAME}  -d
#RewriteRule (.*)  $1/  [NC,QSA]

RewriteCond %{REQUEST_FILENAME}.php  -f
RewriteCond %{REQUEST_METHOD}  =GET [OR]
RewriteCond %{REQUEST_METHOD}  =POST
RewriteRule ^(.*)$  $1.php

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin: "*"
    Header set Access-Control-Allow-Headers: "X-Requested-With"
    Header set Access-Control-Allow-Methods: "GET, POST"
    Header set Allow: "GET, POST"
</IfModule>

On Github License

Files

Download PDF of Htaccess file
GET, POST, REQUEST_FILENAME, REQUEST_METHOD, X-Requested-With

Comments

Apache