Home

How can I fix a 405 error?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

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
  • 405

1. Check the method being requested (e.g

  1. Request the method from the user.
  2. Check the request for errors.
  3. If there are no errors, check the request for validity.
  4. Check the request for eligibility.
  5. Check the request for appropriateness.
  6. 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:

  1. Verify that the URL is being requested from the correct location on the website.
  2. Check the syntax of the URL.
  3. Check that the URL is not truncated.
  4. Check that the URL is not mistyped.
  5. 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:

  1. Verify that the URL for the page is correct. If not, adjust the URL as needed.
  2. Verify that the page is accessible. If not, adjust the page's accessibility settings.
  3. Verify that the page's content is appropriate. If not, adjust the page's content.
  4. 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

  1. Navigate to the IIS Manager on the server.
  2. In the IIS Manager, select the Sites folder.
  3. Right-click on the site that you want to check, and select Properties.
  4. In the Properties dialog box, under the Web Site heading, select the Configuration tab.
  5. 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:

  1. Check the .htaccess file to make sure the correct methods are allowed
  2. Contact the server administrator to have them check the server configuration