mythteam/start-kit/master/backend/web/.htaccess - Htaccess File

mythteam/start-kit/master/backend/web/.htaccess

RewriteEngine on
<IfModule mod_headers.c>
    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"
</IfModule>
# 如果请求的是真实存在的文件或目录,直接访问
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# 如果请求的不是真实文件或目录,分发请求至 index.php
RewriteRule . index.php

On Github License

Files

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

Comments

Apache