Jump to content


This topic is now archived and is closed to further replies.


PUT and DELETE method not supported on IIS server

Recommended Posts

I am running a simple website on a hostforlife windows server, I suppose it is IIS server. The backend of the website is REST api implemented in PHP. However, when I send requests with PUT and DELETE as method, it just return 405 method unsupported. My web.config is like this:

<?xml version="1.0" encoding="UTF-8"?>
              <remove name="Main Rule"/>
                <rule name="Sub Rule" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                    <action type="Rewrite" url="index.php" />

Please help. Thanks!

Share this post

Link to post
Share on other sites

Does the error page mention WebDAV anywhere?

Share this post

Link to post
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.