The HTTP status code 405 Method Not Allowed is returned when the request method is known by the server but is not supported by the target resource. For example, an HTTP GET request cannot be made to a form that only supports POST requests.
Other common searches for this error include:
- http error code 405
1. Check the method being requested (e.g
- Request the method from the user.
- Check the request for errors.
- If there are no errors, check the request for validity.
- Check the request for eligibility.
- Check the request for appropriateness.
- If all checks are successful, execute the method.
2. Check the URL being requested and make sure it is valid
The steps to check the URL being requested and make sure it is valid in order to fix 405 Method Not Allowed error are as follows:
- Verify that the URL is being requested from the correct location on the website.
- Check the syntax of the URL.
- Check that the URL is not truncated.
- Check that the URL is not mistyped.
- Check that the URL is not blocked by the website.
3. If using a custom 404 page, make sure the URL for the page is correct
If using a custom 404 page, make sure the URL for the page is correct in order to fix 405 errors:
- Verify that the URL for the page is correct. If not, adjust the URL as needed.
- Verify that the page is accessible. If not, adjust the page's accessibility settings.
- Verify that the page's content is appropriate. If not, adjust the page's content.
- Verify that the page's design is appropriate. If not, adjust the page's design.
4. Check the server configuration to make sure the correct methods are allowed
- Navigate to the IIS Manager on the server.
- In the IIS Manager, select the Sites folder.
- Right-click on the site that you want to check, and select Properties.
- In the Properties dialog box, under the Web Site heading, select the Configuration tab.
- In the Web Site Configuration section, under the Security heading, verify that the AllowMethods property is set to the correct values. The AllowMethods property should be set to AllowAll or AllowMethodsRequest.
Some users might also have success with the following opitons:
- Check the .htaccess file to make sure the correct methods are allowed
- Contact the server administrator to have them check the server configuration