Forgerbours Posted May 18, 2015 Share Posted May 18, 2015 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"?> <configuration> <system.webServer> <rewrite> <rules> <remove name="Main Rule"/> <rule name="Sub Rule" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> </conditions> <action type="Rewrite" url="index.php" /> </rule> </rules> </rewrite> </system.webServer> </configuration> Please help. Thanks! Link to comment https://forums.phpfreaks.com/topic/296375-put-and-delete-method-not-supported-on-iis-server/ Share on other sites More sharing options...
requinix Posted May 18, 2015 Share Posted May 18, 2015 Does the error page mention WebDAV anywhere? Link to comment https://forums.phpfreaks.com/topic/296375-put-and-delete-method-not-supported-on-iis-server/#findComment-1512128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.