Zilus/cms/master/api/.htaccess - Htaccess File

Zilus/cms/master/api/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /api
#RewriteCond %{REQUEST_FILENAME} !-f 
#RewriteRule ^ index.php [QSA,L]
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.loop.mx/cms/api/$1 [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
GET, POST, PUT, REQUEST_FILENAME, SERVER_PORT

Comments

Apache