I'm testing my api. It success on GET and POST method. But another method such as PUT/DELETE/PATCH, the apache server reponse a 301 redirect pernamently to the same url use GET method.
This is my .htaccess file content is:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
RewriteRule !^(public/|index\.php) [NC,F]
This is log content for a respone:
::1 - - [13/Mar/2020:01:09:22 +0700] "LINK /mvc HTTP/1.1" 301 328 "-" "PostmanRuntime/7.23.0"
::1 - - [13/Mar/2020:01:09:22 +0700] "GET /mvc/ HTTP/1.1" 200 3 "http://localhost/mvc" "PostmanRuntime/7.23.0"
Please help and explain the problem of my .htaccess. Thanks for all.