Suzan Kara
New Member
- Joined
- May 27, 2015
- Messages
- 1
- Thread Author
-
- #1
I am running a simple website on a hostforlife.eu 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>
<?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>
Solution
Hello Suzan,
It appears this is an issue with WebDav on hostingforlife.eu IIS servers. I see a solution that requires modification to your web.config file here: http://iis75europeanhosting.hostfor...T-POST-DELETE-Verbs-Not-Allowed-in-IIS-8.aspx
It appears this is an issue with WebDav on hostingforlife.eu IIS servers. I see a solution that requires modification to your web.config file here: http://iis75europeanhosting.hostfor...T-POST-DELETE-Verbs-Not-Allowed-in-IIS-8.aspx
- Joined
- Aug 3, 2010
- Messages
- 1,289
Hello Suzan,
It appears this is an issue with WebDav on hostingforlife.eu IIS servers. I see a solution that requires modification to your web.config file here: http://iis75europeanhosting.hostfor...T-POST-DELETE-Verbs-Not-Allowed-in-IIS-8.aspx
It appears this is an issue with WebDav on hostingforlife.eu IIS servers. I see a solution that requires modification to your web.config file here: http://iis75europeanhosting.hostfor...T-POST-DELETE-Verbs-Not-Allowed-in-IIS-8.aspx