Kurtumm/yii2playground/master/web/.htaccess
RewriteEngine on #Rewrite on Alias delete when production RewriteBase /yii2playground/ # If a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Otherwise forward it to index.php RewriteRule . index.php #Header set Access-Control-Allow-Origin "*" #Header set Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
Files
![GET, POST, PUT, REQUEST_FILENAME](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/Kurtumm/yii2playground-web-htaccess-442x250.png)