If someone comes across an fault page on your site, there'south a skillful chance they'll get annoyed and go out. This can result in plenty of lost appointment and sales. One particularly common fault to be enlightened of is the "405 Method Not Allowed" message.

This error can be tricky to navigate, equally it indicates that something has gone wrong without telling yous why information technology occurred. Fortunately, with a niggling endeavor and patience, you lot can be back up and running before long.

In this mail, nosotros'll explicate what a 405 mistake is and show yous the dissimilar ways it can appear. Nosotros'll then talk you lot through some of the ways yous can fix this error on your WordPress site. Allow's get to information technology!

What the 405 Method Not Allowed Error Is

When y'all manage a website, information technology's almost guaranteed that you'll run into some kind of mutual issue eventually. Websites get downward, links break, and pages load a little too slowly. Although these occurrences are mutual, leaving them unattended is probable to effect in a poor user experience.

Unfortunately, some issues are more hard to fix than others. Consider the 405 Method Non Allowed error bulletin, for example. This is an HTTP response condition indicating that a web browser has requested access to ane of your site'south pages.

In this scenario, your web server has received and recognized the request, just has rejected the specific HTTP method it's using. In practical terms, this means that the browser tin can't access the folio it requested. Your site's visitors will see an error page, rather than the content they were looking for:

Google Chrome

405 Not Allowed Error Nginx in Chrome
405 Not Immune Error Nginx in Chrome

Safari

405 Not Allowed Error Nginx in Safari
405 Not Allowed Error Nginx in Safari

Firefox

405 Not Allowed Error Nginx in Firefox
405 Not Allowed Fault Nginx in Firefox

Microsoft Border

405 Not Allowed Error Nginx in Microsoft Edge
405 Not Allowed Error Nginx in Microsoft Edge

The 405 Method Non Allowed error shouldn't exist confused with the 404 Non Found fault. A 404 tells you that the requested URL couldn't be found or that information technology was entered incorrectly. A 405 fault message, on the other paw, confirms that the requested page does be (and the URL was input correctly), just an unacceptable HTTP method was used to make the initial asking.


Check Out Our Video Guide to the 405 Method Not Allowed Error

Variations on the 405 Method Not Immune Mistake

Although the 405 error message nigh normally appears in the form we showed above, various web servers, operating systems, and browsers can present it in numerous ways. The actual cause of the outcome is also likely to differ slightly from server to server, which tin affect the way the error appears.

Here are simply a few of the many different variations y'all might run beyond:

  • 405 Non Allowed
  • Method Not Allowed
  • HTTP 405 Mistake
  • HTTP Fault 405 – Method Not Allowed
  • HTTP 405 Method Not Allowed

Regardless of how they announced, the trouble with 405 errors is that they can exist difficult to solve. This is because they let you know that something has gone wrong, but they don't tell you what the cause of the trouble is. In most cases, it's upwardly to you to find the root crusade and repair it if possible.

Subscribe Now

Are y'all getting the 405 Method Non Immune Mistake with your #WordPress site? Here are 7 ideas to easily fix it! 💡 Click to Tweet

How to fix the 405 Method Not Allowed Mistake on Your WordPress Site (7 Possible Solutions)

Before we start discussing the possible solutions, y'all'll want to create a fill-in of your site. This will give you something to fall back on if you lot brand a mistake. Many web hosting providers include regular site backups as a part of their plans. If you take a hosting plan here at Kinsta, creating a fill-in is simple.

In one case that's out of the way, it's time to begin the troubleshooting procedure. The methods we've outlined below are organized from most probable to fix the problem to least likely, so beginning from the top and work your way down to achieve the all-time results.

Without farther ado, let'southward get started with one of the easier steps on our listing.

ane. Check to See If You've Input the Correct URL

It may sound a fiddling as well elementary merely the almost mutual cause of a 405 Method Non Immune error is entering the wrong URL. Well-nigh web servers are tightly secured and designed to disallow access to improper URLs to prevent users from visiting the wrong pages (or trying to access pages that don't exist).

Before going any further, therefore, double-bank check to ensure that you've entered the URL of the site you lot wish to visit correctly. It'due south easier than you might recollect to make mistakes – such as forgetting a letter or misspelling a give-and-take. You may also find that merely refreshing the folio could prompt information technology to load correctly.

2. Roll Back Whatever Contempo WordPress Updates

Updates are wonderful things. They typically bring a wealth of heady new features and can help to gear up any ongoing bugs and patch security holes. Yet, despite their proficient intentions, updates can occasionally cause some issues.

If y'all updated WordPress just before the 405 Method Not Allowed error message started to announced, the new code could be the root of the trouble. This also applies to any extensions or themes yous may have recently upgraded – although we'll focus more than on that aspect in the next section.

If you lot feel that an update might exist at fault, it's worth reverting back to the previous version of WordPress. As we've already touched on, brand sure you take a full site backup ready earlier doing this – you don't want to make any irreversible changes.

While you can do this manually, the easiest mode to roll back WordPress updates is to use a plugin. There are many bachelor options, although WP Downgrade is particularly effective. This plugin will largely automate the process, meaning that you lot're less likely to make mistakes.

Having a tool like this in your armory too means that you can prevent similar issues from happening in the future. Of course, if rolling back the latest update doesn't fix the trouble, remember to re-update your site or restore your backup.

3. Uninstall New Plugins and Themes

Plugins are an essential office of whatsoever WordPress website. They enable you to add a wealth of new features, and can even automate more circuitous processes. Themes are every bit as important. Without them, you'd need a lot of circuitous coding (or an expensive programmer) to create an aesthetically-pleasing site.

Unfortunately, just as with software updates, these extensions can sometimes create bug. This is because adding functionality to your site on any level completely changes the way it operates. There may exist an issue with the plugin or theme y'all're using, or a specific extension might disharmonize with another part of your site (or even your WordPress version).

As a result, you may find that uninstalling sure plugins or themes could aid to ready the 405 Method Not Allowed fault. To begin this process, you'll need to navigate to the Plugins department of your WordPress dashboard. On this page, you should exist able to see a complete list of all the plugins you take installed:

Plugins page in WordPress
Plugins page in WordPress

From hither, you can begin to uninstall your plugins one at a fourth dimension. After uninstalling each i, check your website to see if the mistake has been resolved. This process may have some fourth dimension to consummate, merely it will enable y'all to pinpoint exactly which plugin is causing the problem (if any of them are at error):

How to deactivate a WordPress plugin
How to deactivate a WordPress plugin

One time you've checked over your plugins, y'all tin can repeat this process with your active theme. If your theme or 1 of your plugins turns out to be the issue, you'll desire to either contact the developers, remove the plugin or theme, or look for a replacement. Here's our guide on how to install a new WordPress theme.

four. Cheque for Any Unexpected Database Changes

Although the above step should resolve whatever plugin- or theme-related issues, it doesn't guarantee that all changes made by your extensions accept been fully reverted. This is especially true for many WordPress plugins. They are often given complete access to your database equally presently as you hit Install, meaning that their changes go deeper than you might initially think.

Unless the developer explicitly codes against it, a plugin may be able to modify database records that don't "belong" to information technology but are instead managed by WordPress itself. In this scenario, the plugin may not know how to revert those alterations to database records, so information technology will ignore them during the uninstallation process.

Diagnosing this particular problem can be hard, but if you lot even so doubtable that a plugin or theme is the cause of the 405 Method Non Allowed error, checking your database directly is your best course of action. To do that, you'll need to open up your site'due south database, and manually expect through the tables and records modified by the extension. If you're not sure what to expect for, getting in bear upon with your developer is a smart idea at this betoken (every bit well as for the remaining steps on this list).

5. Confirm Your Server'south Configuration

Your website probable runs on a server that uses one of the two well-nigh pop server software options – Apache or Nginx. In fact, together they power 84% of the world's spider web servers. Checking your web server software'south configuration files for any unintentional handling instructions may help to make up one's mind the root cause of the 405 Method Not Allowed error.

To determine which application your web server is using, you'll want to wait out for a cardinal file. For example, if your spider web server is running Apache, y'all should be able to find an .htaccess file inside the root directory of your website's file organization.

When your application is on a shared host, you'll probable accept a username associated with your particular business relationship. If that's the case, the application root directory tin typically be found by following this path:

/home/public_html/

Therefore, the .htaccess file would exist found at:

/home/public_html/.htaccess

Once you've located the .htaccess file, open it upwards in a text editor and look for lines that employ Rewrite directives. These are part of the mod_rewrite module in Apache and define a text-based pattern that volition be matched confronting all entered URLs. If a matching URL is requested by a visitor to your site, the RewriteRule will redirect the visitor appropriately.

To amend demonstrate this, here is a simple RewriteRule that matches all incoming requests to https://kinsta.com and responds with a 405 Method Not Immune error lawmaking:

Example of the RewriteRule
Example of the RewriteRule

As you can probably see, there'due south a flag at the end of the dominion marked R=405. This explicitly states that the response lawmaking should be 405, indicating to the user that the resource exists, but the provided HTTP method was not allowed. If you find any strange Rewrite directives in the .htaccess file that contain a similar instruction, effort temporarily commenting them out using the # character prefix. You tin can then restart your web server, to see if your change has resolved the event.

Recollect, if you're a client at Kinsta, nosotros use Nginx servers, not Apache. You tin can reach out to our support squad if you think something might be wrong with your Nginx config.

half-dozen. Look Through the Server-Side Logs

Nearly every web application keeps some kind of server-side logs. Application logs usually incorporate the complete history of everything the software has washed – from the pages information technology's requested, to the database results it provides.

Server logs are slightly different, every bit they're related to the bodily hardware that runs the application. They will oft provide details about the wellness and status of all connected services, or fifty-fifty just the server itself.

To find your WordPress server logs, you'll want to connect to your site via Secure File Transfer Protocol (SFTP). In the root directory, you will encounter a folder called logs. Within this folder are your access logs, and your WordPress fault logs. They should look a trivial something similar this:

  • Access.log
  • Error.log

From at that place, you can begin to follow a similar process to that outlined in the previous step. Look through the logs and have note of anything that looks out of place (or ask your developer to do so). Yous can also refer to the codex for additional debugging data in WordPress.

7. Debug Your Application Lawmaking or Scripts

If none of the previous steps have washed the fox, it may be a sign that in that location's an issue with some custom lawmaking in your WordPress installation. The only way of determining whether this is the cause of the 405 Method Not Immune error is to debug information technology.

Ideally, you lot'll desire to make a copy of the entire installation to an online or local evolution expanse – such equally a staging site. From in that location, y'all can brainstorm to acquit a step-by-step debugging procedure, which will vary depending on your site and its attached software.

Unfortunately, there's no quick fix here. Y'all'll take to be prepared to put in the time to rummage each section of your site for anything that looks out of place. Remember, notwithstanding, that a fully-operational site is worth the hassle.

What to Do if None of These Solutions Work

If you're even so reading, information technology probably ways that the solutions we've outlined above all the same haven't fixed the 405 Method Not Allowed error. This is unremarkably an indication that a more complex issue has occurred, and is unlikely to be something you can fix personally unless yous're a seasoned developer.

In this scenario, the best thing you can do is often to contact your hosting provider straight. Yous should take access to 24/seven customer support through a alive chat or ticketing service. You may also be able to achieve out to your host via email or telephone, although opting for live chat is likely to offer a faster solution.

Summary

No affair how carefully-optimized your website might be, information technology's nearly inevitable that you'll encounter at least one error message at some bespeak. It's important to resolve the issue apace when this happens, to go on visitors interested in your site. Fortunately, although the 405 Method Not Immune error can be confusing, information technology'south often possible to fix it with a piffling troubleshooting.

Let's recap the seven methods you can try in gild to fix a 405 fault on your WordPress site:

  • Bank check to ensure that you've entered the correct URL into the address bar.
  • Whorl back any recent WordPress updates, to distinguish whether that'south causing the outcome.
  • Uninstall whatever new plugins or themes one at a fourth dimension.
  • Ensure that there haven't been whatever unexpected database changes.
  • Confirm your server's configuration.
  • Wait through the server-side logs stored by WordPress.
  • Endeavor to debug your application code or scripts.

Practice you accept whatever farther questions about the 405 Method Not Allowed error? Or is there another usually-encountered error message you'd similar united states of america to cover? Permit u.s.a. know in the comments section below!


Save fourth dimension, costs and maximize site performance with:

  • Instant aid from WordPress hosting experts, 24/vii.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 information centers worldwide.
  • Optimization with our congenital-in Application Operation Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a thirty-day-money-dorsum-guarantee. Check out our plans or talk to sales to find the plan that'south correct for you.