{"id":39983,"date":"2023-04-06T14:20:20","date_gmt":"2023-04-06T21:20:20","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=39983"},"modified":"2025-05-21T19:11:28","modified_gmt":"2025-05-22T02:11:28","slug":"fixing-the-405-error","status":"publish","type":"post","link":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/","title":{"rendered":"Your Guide to Fixing the 405 Method Not Allowed Error"},"content":{"rendered":"\n<p>Funny enough, <a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-403-forbidden-error-wordpress\/\" target=\"_blank\" rel=\"noopener\">HTTP error codes<\/a> are both really useful and incredibly frustrating at the same time.<\/p>\n\n\n\n<p>Seeing an error when you load a page makes it very clear that something has gone wrong with the website \u2014 But most of us haven\u2019t got the faintest clue about what \u201c405 Method Not Allowed\u201d means, let alone how to fix it.<\/p>\n\n\n\n<p>That\u2019s why we wrote this handy-dandy guide! A 405 error isn\u2019t any reason to panic; there are just a few steps to restore your website back to working order.<\/p>\n\n\n\n<p>Over the next few pages, we will explain what this error is all about and show you how to make it disappear.<\/p>\n\n\n\n<h2 id=\"h-what-is-the-405-method-not-allowed-error\" class=\"wp-block-heading\">What Is the 405 Method Not Allowed Error?<\/h2>\n\n\n\n<p>The 405 error is a type of HTTP status code \u2014 This means it\u2019s a message that a server sends to your web browser, explaining why it can\u2019t deliver the content you asked for.<\/p>\n\n\n\n\n\n<div class=\"glossary-term\">\n\t<a\n\t\tclass=\"glossary-term__above-title\"\n\t\thref=\"\"\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 640 512\"><path d=\"M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z\"\/><\/svg>\n\t\t<span><\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n    <h3>Server<\/h3>\n    <p>A server is a computer that stores data. A web server is a type of server that stores and delivers web pages to users. Web servers are connected to the internet and use HTTP to send web pages to users who request them.<\/p>\n            <a\n            href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/server\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Read More                    <\/a>\n\n<\/div>\n\n\n\n<p>A persistent 405 status code is a problem for anyone running a website. If multiple users see the same error, that means there\u2019s something misconfigured on your website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1000\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error.jpg\" alt=\"What Is the 405 Method Not Allowed Error? The 405 error is a type of HTTP status code\" class=\"wp-image-39987 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-300x188.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-1024x640.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-768x480.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-1536x960.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-600x375.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-1200x750.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-730x456.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-1460x913.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-784x490.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-1568x980.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-405-Method-Not-Allowed-Error-877x548.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1000;\" \/><\/figure>\n\n\n\n<p>Until you fix the problem, visitors won\u2019t be able to access the page where the error code is displayed.<\/p>\n\n\n\n<p>This error code may appear as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>405 Method Not Allowed<\/li>\n\n\n\n<li>405 Not Allowed<\/li>\n\n\n\n<li>Method Not Allowed<\/li>\n\n\n\n<li>HTTP 405 Error<\/li>\n\n\n\n<li>HTTP Error 405 \u2013 Method Not Allowed<\/li>\n\n\n\n<li>HTTP 405 Method Not Allowed<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-causes-the-405-error\">What Causes the 405 Error?<\/h3>\n\n\n\n<p>Let\u2019s get a bit more technical.<\/p>\n\n\n\n<p>Whenever you try to visit a specific web page, your browser asks the hosting server to send over the content. Typically, the server sees this request and shoots the page straight to your device in a fraction of a second. Success!<\/p>\n\n\n\n<p>This whole process is regulated by HTTP, or Hypertext Transfer Protocol. This protocol uses a series of status codes to track progress and problems.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"978\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Status-Codes.jpg\" alt=\"List of status codes. Codes in the 400s relate to client-side errors.\" class=\"wp-image-39988 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Status-Codes-300x183.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Status-Codes-1024x626.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Status-Codes-768x469.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Status-Codes-1536x939.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-600x367.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-1200x734.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-730x446.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-1460x892.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-784x479.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-1568x958.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Status-Codes-877x536.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/978;\" \/><\/figure>\n\n\n\n<p>Codes in the 400s relate to client-side errors. And the 405 Method Not Allowed error code means that your browser has sent an HTTP request (GET, POST, PUT, etc.) that isn\u2019t allowed for that specific resource, or URL.<\/p>\n\n\n\n<p>In many cases, this is triggered by something the user does. The most common cause is inputting the wrong URL.<\/p>\n\n\n\n<p>However, the 405 error code can also appear when something has gone wrong with the <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215838028-Building-your-website\" target=\"_blank\" rel=\"noopener\">configuration of your website<\/a>. We will explore some of those issues later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-is-the-difference-between-404-and-405-errors\"><b>What Is the Difference Between 404 and 405 Errors?<\/b><\/h3>\n\n\n\n<p>Both 404 and 405 errors prevent users from accessing content on your website, but they relate to different problems.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"693\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors.jpg\" alt=\"The difference between 404 and 405 errors. 404 error code shows up when the content doesn't exist at the URL. Meanwhile 405 error code shows up when the content exist but access is blocked.\" class=\"wp-image-39989 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-300x130.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-1024x444.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-768x333.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-1536x665.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-600x260.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-1200x520.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-730x316.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-1460x632.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-784x340.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-1568x679.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/What-Is-the-Difference-Between-404-and-405-Errors-877x380.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/693;\" \/><\/figure>\n\n\n\n<p>The <a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-404-error\/\" target=\"_blank\" rel=\"noopener\">404 error code<\/a> shows up when someone visits a URL where no context exists. For example, this sometimes happens when pages are removed, or domains are changed.<\/p>\n\n\n\n<p>In contrast, the 405 error means that your server is rejecting an HTTP request from a browser. The content is there, but the server refuses to provide access because the request was made in the wrong format.<\/p>\n\n\n\n<h2 id=\"h-how-to-fix-the-405-method-not-allowed-error\" class=\"wp-block-heading\">How to Fix the 405 Method Not Allowed Error<\/h2>\n\n\n\n<p>Understanding what causes the 405 error is an important step in solving the issue.<\/p>\n\n\n\n<p>However, this status code doesn&#8217;t tell us exactly what\u2019s wrong. The only way to identify the precise problem is by troubleshooting.<\/p>\n\n\n\n<p>Ready to get started? Here\u2019s a checklist of potential fixes:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-check-your-links\"><b>1) Check Your Links<\/b><\/h3>\n\n\n\n<p>When you spot a 405 error in the wild, there\u2019s a strong chance that you simply visited the wrong page.<\/p>\n\n\n\n<p>For security reasons, web servers are typically configured to accept only <a href=\"https:\/\/www.dreamhost.com\/blog\/400-bad-request-error\/\" target=\"_blank\" rel=\"noopener\">specific types of requests<\/a> on each URL. If you visit a page that is not open access, you may end up seeing the 405 error message.<\/p>\n\n\n\n<p>If visitors to your site consistently see 405 error codes, it might be because they are following a bad link.<\/p>\n\n\n\n<p>One way to prevent this is by checking your site using the <a href=\"https:\/\/www.deadlinkchecker.com\" target=\"_blank\" rel=\"noopener\">Dead Link Checker<\/a> or a similar free tool. And make sure that none of your social links and landing pages point towards private pages.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"758\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Dead-Link-Checker.jpg\" alt=\"If visitors to your site consistently see 405 error codes, it might be because they are following a bad link. You can check your site using the Dead Link Checker or a similar free tool.\" class=\"wp-image-39990 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Dead-Link-Checker-300x142.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Dead-Link-Checker-1024x485.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Dead-Link-Checker-768x364.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Dead-Link-Checker-1536x728.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-600x284.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-1200x569.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-730x346.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-1460x692.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-784x371.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-1568x743.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Dead-Link-Checker-877x415.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/758;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-check-your-updates\"><b>2) Check Your Updates<\/b><\/h3>\n\n\n\n<p>Have you updated your <a href=\"https:\/\/www.dreamhost.com\/blog\/comprehensive-guide-to-content-management-systems\/\" target=\"_blank\" rel=\"noopener\">content management system<\/a>, your theme, or even a plugin recently? That might be why you\u2019re suddenly seeing 405 Method Not Allowed error messages.<\/p>\n\n\n\n<p><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215300747-Automatic-Updates-for-DreamHost-WordPress-installations\" target=\"_blank\" rel=\"noopener\">Updates<\/a> are essential for maintaining good <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215947927-Enable-extra-web-security-on-a-website\" target=\"_blank\" rel=\"noopener\">website security<\/a>. They can also fix existing bugs, and give you access to new features. But just occasionally, fresh updates introduce new gremlins.<\/p>\n\n\n\n<p>If you\u2019re unsure if you\u2019re due for an update, log into your admin account and navigate to <b>Dashboard &gt; Updates<\/b> page. Here, you\u2019ll see a timestamp of the last time WordPress checked for updates. If need be, you can click \u201cCheck again\u201d to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/360037291651-Manually-updating-WordPress\" target=\"_blank\" rel=\"noopener\">manually check<\/a> for updates.<\/p>\n\n\n\n<p>Unfortunately, sometimes an update might break your website. To fix this, you can simply roll back to the previous version of the system, theme, or plugin that might be causing problems.<\/p>\n\n\n\n<p>The exact process here depends on what you need to downgrade. For instance, WordPress users can use the <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/wp-downgrade\/\" target=\"_blank\" rel=\"noopener\">WP Downgrade<\/a> plugin to revert to a previous version.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"568\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In.jpg\" alt=\"Updating your content management system, your theme, or even a plugin recently might be why you\u2019re suddenly seeing 405 Method Not Allowed error messages.\" class=\"wp-image-39991 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-300x107.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-1024x364.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-768x273.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-1536x545.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-600x213.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-1200x426.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-730x259.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-1460x518.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-784x278.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-1568x557.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Roll-Back-Recent-Updates-WP-Downgrade-Plug-In-877x311.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/568;\" \/><\/figure>\n\n\n\n<p>For some websites, the easiest route is simply to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/217906467-Backup-or-restore-your-Dedicated-site-files\" target=\"_blank\" rel=\"noopener\">restore your entire site from a backup<\/a> \u2014 see step 10 for more.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-how-to-downgrade-wordpress-plugins-and-themes\">How to Downgrade WordPress Plugins and Themes<\/h4>\n\n\n\n<p>If you believe that a specific theme or plugin is causing the problem, we recommend using the <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/10434999845780-Using-the-WP-Rollback-plugin\" target=\"_blank\" rel=\"noopener\">WP Rollback plugin<\/a>. Once activated, this gives you the option to downgrade any plugin or theme you have installed.<\/p>\n\n\n\n<p>Simply open up <b>Plugins &gt; Installed Plugins<\/b> or <b>Appearance &gt; Themes<\/b> inside your WordPress Admin area, and you will see a little \u201cRollback\u201d button under each plugin or theme.<\/p>\n\n\n\n<p>Click this, and WP Rollback will allow you to choose the exact version you want to restore.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"820\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/WP-Rollback-Plug-In.jpg\" alt=\"WP Rollback will allow you to choose the exact version you want to restore.\" class=\"wp-image-39992 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/WP-Rollback-Plug-In-300x154.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/WP-Rollback-Plug-In-1024x525.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/WP-Rollback-Plug-In-768x394.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/WP-Rollback-Plug-In-1536x787.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-600x308.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-1200x615.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-730x374.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-1460x748.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-784x402.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-1568x804.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/WP-Rollback-Plug-In-877x449.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/820;\" \/><\/figure>\n\n\n\n<p>Once the downgrade is complete, make sure to hit <b>Activate<\/b> on the plugin or theme to put the old version into action.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-uninstall-new-plugins-modules-and-themes-nbsp\"><b>3) Uninstall New Plugins, Modules, and Themes&nbsp;<\/b><\/h3>\n\n\n\n<p>Just as updates to existing plugins and themes can mess things up, so can brand new additions to your site.<\/p>\n\n\n\n<p>With this in mind, it\u2019s worth deactivating new plugins, modules, and themes if you start seeing 405 Method Not Allowed errors on your site.<\/p>\n\n\n\n<p>Once again, the process here will depend on the content management system you are using.<\/p>\n\n\n\n<p>In <a href=\"https:\/\/www.dreamhost.com\/wordpress\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a>, you can do this through the Admin area. Navigate to <b>Plugins<\/b> or <b>Appearance &gt; Themes<\/b>, and you should see a little red <span style=\"color: #ff0000;\">Deactivate<\/span> button next to every plugin and theme.<\/p>\n\n\n\n<p>Not sure which plugin is causing the problem? You can disable all your plugins within a minute via <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/115000675027-FTP-overview-and-credentials\" target=\"_blank\" rel=\"noopener\">FTP<\/a> or <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/216041267-SSH-overview\" target=\"_blank\" rel=\"noopener\">SSH<\/a>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In your FTP\/SSH client, head to your WordPress site directory<\/li>\n\n\n\n<li>Navigate to <b>wp-content <\/b>and right-click on <b>plugins<\/b><\/li>\n\n\n\n<li>Select <b>Rename<\/b><\/li>\n\n\n\n<li>Change the name of the folder to <b>\/plugins_OFF<\/b><\/li>\n<\/ol>\n\n\n\n<p>This will immediately cut off all plugins. When you want to reverse the process, simply follow the steps again and rename the folder as <b>plugins<\/b>.<\/p>\n\n\n\n<p>If you want to delete themes through FTP\/SSH:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit your site directory<\/li>\n\n\n\n<li>Navigate to <b>wp-content\/themes directory<\/b>.<\/li>\n\n\n\n<li>Delete the folder of the theme you want to remove<\/li>\n<\/ol>\n\n\n\n<p>Just bear in mind that you might want to keep a backup of this folder, just in case the theme is not to blame.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-restore-your-database-nbsp\"><b>4) Restore Your Database&nbsp;<\/b><\/h3>\n\n\n\n<p>Plugins and themes usually need at least some access to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/221610868-Finding-your-database-login-credentials\" target=\"_blank\" rel=\"noopener\">your database<\/a> to perform their duties.<\/p>\n\n\n\n<p>Sometimes they get a little unruly and start making changes to parts of the database that are none of their business. These changes can cause 405 errors.<\/p>\n\n\n\n\n\n<div class=\"glossary-term\">\n\t<a\n\t\tclass=\"glossary-term__above-title\"\n\t\thref=\"\"\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 640 512\"><path d=\"M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z\"\/><\/svg>\n\t\t<span><\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n    <h3>Database<\/h3>\n    <p>A database is a collection of information accessible to computers. Databases are used to store information such as customer records, product catalogs, and financial transactions.<\/p>\n            <a\n            href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/database\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Read More                    <\/a>\n\n<\/div>\n\n\n\n<p>Even if you remove the offending plugin or theme, the changes they made will remain. There are only two ways to fix these issues:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Look through your database logs for problematic changes<\/li>\n\n\n\n<li>Restore a previous version of your database<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-database-logs\">Database Logs<\/h4>\n\n\n\n<p>To <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/360003819912-Viewing-your-database-logs\" target=\"_blank\" rel=\"noopener\">access the database logs<\/a> for your website, head to the control panel of your hosting provider. Usually, you will only be able to access logs if you have a private server.<\/p>\n\n\n\n<p>For databases hosted with DreamHost, head to <b>MySQL Databases <\/b>to find the name of your <a href=\"https:\/\/panel.dreamhost.com\/index.cgi?tree=advanced.mysql\" target=\"_blank\" rel=\"noopener\">MySQL Databases<\/a>, and then get in touch with technical support to get access.<\/p>\n\n\n\n<p>If you know exactly when the 405 errors started appearing, you may be able to find the offending database change by sorting the logs by time. You\u2019re looking for &#8220;INSERT&#8221;, &#8220;UPDATE&#8221;, or &#8220;DELETE&#8221; changes.<\/p>\n\n\n\n<p>Just be aware that you need a strong knowledge of <a href=\"https:\/\/www.dreamhost.com\/pro-services\/development\/\" target=\"_blank\" rel=\"noopener\">web development<\/a> to identify potential problems here. If you\u2019re not sure what you\u2019re looking at, avoid making modifications and <a href=\"https:\/\/www.dreamhost.com\/pro-services\/development\/\" target=\"_blank\" rel=\"noopener\">consult a professional<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-restore-your-database\">Restore Your Database<\/h4>\n\n\n\n<p>If you don\u2019t have developer-level skills, <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215100557-Restore-a-database-in-the-panel\" target=\"_blank\" rel=\"noopener\">restoring your database<\/a> to a previous version is probably a more realistic option.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"758\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Database.jpg\" alt=\"If you don\u2019t have developer-level skills, you can try to restoring your database to a previous version.\" class=\"wp-image-39993 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Database-300x142.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Database-1024x485.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Database-768x364.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Database-1536x728.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-600x284.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-1200x569.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-730x346.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-1460x692.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-784x371.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-1568x743.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Database-877x415.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/758;\" \/><\/figure>\n\n\n\n<p>As with site data, DreamHost automatically creates a backup of your database every day. To restore one of these backups:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Visit the <a href=\"https:\/\/panel.dreamhost.com\/index.cgi?tree=advanced.mysql\" target=\"_blank\" rel=\"noopener\">MySQL Databases<\/a> page in your account<\/li>\n\n\n\n<li>Click the <b>Restore DB<\/b> button to the right of your database<\/li>\n\n\n\n<li>Choose the time of the backup you want to restore<\/li>\n\n\n\n<li>Under <b>When restoring<\/b>, select option 3 or 4 depending on your CMS; choose option 4 for WordPress<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-5-read-your-server-side-logs\"><b>5) Read Your Server-Side Logs<\/b><\/h3>\n\n\n\n<p>Just as your database logs can reveal problems that will lead to 405 errors, we can also find clues in the <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/sections\/203242117-Logs\" target=\"_blank\" rel=\"noopener\">server-side logs<\/a>.<\/p>\n\n\n\n<p>The files we\u2019re looking for here are named <b>error.log<\/b> and <b>access.log<\/b>. With DreamHost, you can <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/216512197-Viewing-your-access-and-error-logs-via-SFTP\" target=\"_blank\" rel=\"noopener\">view them via SFTP<\/a> (Secure File Transfer Protocol):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In your FTP client, visit the <b>\/logs<\/b> directory in your user folder<\/li>\n\n\n\n<li>Open the site you want to check<\/li>\n\n\n\n<li>Open the most recent directory with a name that starts with <b>http<\/b><\/li>\n\n\n\n<li>Open the log file inside, using your preferred text editor<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"758\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Read-Your-Server-Side-Logs.jpg\" alt=\"You can also find clues in the server-side logs\" class=\"wp-image-39994 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Read-Your-Server-Side-Logs-300x142.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Read-Your-Server-Side-Logs-1024x485.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Read-Your-Server-Side-Logs-768x364.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Read-Your-Server-Side-Logs-1536x728.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-600x284.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-1200x569.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-730x346.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-1460x692.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-784x371.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-1568x743.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Read-Your-Server-Side-Logs-877x415.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/758;\" \/><\/figure>\n\n\n\n<p>When you examine the files, check for errors relating to server configuration or changes to your web application code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-6-confirm-your-web-server-configuration\"><b>6) Confirm Your Web Server Configuration<\/b><\/h3>\n\n\n\n<p>As we mentioned earlier, the 405 Method Not Allowed error occurs when a web server rejects a request.<\/p>\n\n\n\n<p>Most of the time, this is helpful. If your server did not block certain request methods, your site could easily be overwhelmed with unwanted attention.<\/p>\n\n\n\n<p>But just like an over-aggressive club doorman, sometimes web servers block the wrong kind of requests, or wrongly restrict access to certain content. This is usually caused by incorrect <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/sections\/5117452597268-Server-configurations\" target=\"_blank\" rel=\"noopener\">server configuration<\/a>. The result is that visitors are redirected to an error page.<\/p>\n\n\n\n<p>To figure out whether this is the problem with your site, you will need to visit your server configuration file. The exact file name will depend on whether your web server software is <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/217214317-Apache-HTTP-Server\" target=\"_blank\" rel=\"noopener\">Apache<\/a>, <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/216431827-Nginx-overview\" target=\"_blank\" rel=\"noopener\">Nginx<\/a>, or <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/sections\/203242487-Cloudflare\" target=\"_blank\" rel=\"noopener\">Cloudflare<\/a>.<\/p>\n\n\n\n<p>We use Apache by default at DreamHost, so you\u2019re looking for the <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/217738987-What-can-I-do-with-an-htaccess-file-\" target=\"_blank\" rel=\"noopener\"><b>.htaccess file<\/b><\/a> in the root directory of your site. On VPS plans, you have the option to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/214880148-Change-your-web-server-to-Nginx\" target=\"_blank\" rel=\"noopener\">switch to Nginx hosting<\/a>; in this case, your configuration file will be <b>nginx.conf<\/b>.<\/p>\n\n\n\n<p>After finding the relevant file, open it with your preferred text editor. Next, search for <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-\" target=\"_blank\" rel=\"noopener\">Rewrite commands<\/a>. These are associated with Apache&#8217;s mod_rewrite module.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"524\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Remove-Rewrite-Commands.jpg\" alt=\"You can try to remove Rewrite Commands.\" class=\"wp-image-39996 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Remove-Rewrite-Commands-300x98.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Remove-Rewrite-Commands-1024x335.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Remove-Rewrite-Commands-768x252.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Remove-Rewrite-Commands-1536x503.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-600x197.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-1200x393.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-730x239.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-1460x478.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-784x257.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-1568x514.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Remove-Rewrite-Commands-877x287.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/524;\" \/><\/figure>\n\n\n\n<p>This module allows you to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-\" target=\"_blank\" rel=\"noopener\">modify URLs<\/a> that are requested by users, before they are processed by your server. This can be useful when you want to redirect users to a different page, divert certain types of traffic, or just display a more user-friendly URL.<\/p>\n\n\n\n<p>The problems usually involve commands like this in your configuration file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nRewriteRule ^(.*)$ http: \/\/example.com &#x5B;R=405, L]\n<\/pre><\/div>\n\n\n<p>This makes the server return a 405 HTTP response status code when someone visits the URL mentioned in the command.<\/p>\n\n\n\n<p>If you\u2019re struggling with persistent errors, try commenting out such commands in your config file. You can do this by adding a <strong>#<\/strong> at the start of the line you wish to comment out.<\/p>\n\n\n\n<p>Alternatively, you can change the directive from <b>RewriteEngine ON <\/b>to <b>RewriteEngine OFF<\/b>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-7-fix-file-permissions\"><b>7) Fix File Permissions<\/b><\/h3>\n\n\n\n<p>Another reason why a server might be blocking access to certain content is because your <a href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/permissions\/\" target=\"_blank\" rel=\"noopener\">site permissions<\/a> are misconfigured.<\/p>\n\n\n\n<p>For instance, your server may allow an admin to use a specific HTTP method. But when a general site visitor tries the same request, they are blocked and handed an error code.<\/p>\n\n\n\n<p>The fastest way to check and manage permissions is usually through your panel. DreamHost users can utilize the built-in file manager:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Visit <a href=\"https:\/\/panel.dreamhost.com\/?tree=domain.dashboard#!\/list-view\" target=\"_blank\" rel=\"noopener\"><b>Manage Websites<\/b><\/a> and tap the <b>Manage <\/b>button<\/li>\n\n\n\n<li>Open the directory for your website<\/li>\n\n\n\n<li>To view permissions, right click on any file and choose <b>CHMOD<\/b><\/li>\n<\/ul>\n\n\n\n<p>You may just discover that one of your important files does not have public read access.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"690\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Fix-File-Permissions.jpg\" alt=\"Your server might be blocking access to certain content is because your site permissions are misconfigured.\" class=\"wp-image-39997 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Fix-File-Permissions-300x129.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Fix-File-Permissions-1024x442.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Fix-File-Permissions-768x331.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Fix-File-Permissions-1536x662.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-600x259.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-1200x518.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-730x315.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-1460x630.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-784x338.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-1568x676.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Fix-File-Permissions-877x378.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/690;\" \/><\/figure>\n\n\n\n<p>If you\u2019re running your own private server or <a href=\"https:\/\/www.dreamhost.com\/hosting\/vps\/\" target=\"_blank\" rel=\"noopener\">VPS<\/a>, it\u2019s also worth checking the configuration settings. Your server might be set up to accept only certain HTTP request methods for specific file types.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-8-debug-your-code\"><b>8) Debug Your Code<\/b><\/h3>\n\n\n\n<p>Ultimately, the cause of your 405 errors might be that something is wrong with the code of your website or web app.<\/p>\n\n\n\n<p>To diagnose such problems, you will need to follow a full <a href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/debugging\/\" target=\"_blank\" rel=\"noopener\">debugging<\/a> process. This usually involves creating a complete local copy of your website, and then trying to recreate the error. Alternatively, you can use an online development environment.<\/p>\n\n\n\n<p>The exact process you will need to follow is dependent on the CMS, scripts, and programming languages you\u2019re using. If your site runs on WordPress and you are confident in the command line, you could <a href=\"https:\/\/www.dreamhost.com\/blog\/debug-wordpress-website-command-line-using-wp-cli\/\" target=\"_blank\" rel=\"noopener\">try using WP-CLI<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-9-restore-your-whole-website\"><b>9) Restore Your Whole Website<\/b><\/h3>\n\n\n\n<p>Sometimes in life, you need to know when to accept defeat and, as the kids say \u201ctake the L\u201d.<\/p>\n\n\n\n<p>If you\u2019ve tried other fixes and nothing seems to work, you might just need to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/217906467-Backup-or-restore-your-Dedicated-site-files\" target=\"_blank\" rel=\"noopener\">restore your site<\/a> to how it was before the client errors arrived.<\/p>\n\n\n\n<p>When you host any website with DreamHost, we always recommend <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215089918-Back-up-an-account-in-the-panel\" target=\"_blank\" rel=\"noopener\">making regular backups<\/a> and keeping a copy of those files offline. But we do keep daily backups of every website that is hosted on our servers.<\/p>\n\n\n\n\n\n<div class=\"glossary-term\">\n\t<a\n\t\tclass=\"glossary-term__above-title\"\n\t\thref=\"\"\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 640 512\"><path d=\"M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z\"\/><\/svg>\n\t\t<span><\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n    <h3>Cloud Hosting<\/h3>\n    <p>Traditional web hosting houses a website on a physical server. On the other hand, \u201ccloud hosting\u201d uses multiple virtual (remote) servers for the same task.<\/p>\n            <a\n            href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/cloud-hosting\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Read More                    <\/a>\n\n<\/div>\n\n\n\n<p>This means you can restore your website to how it was yesterday with a couple of clicks.<\/p>\n\n\n\n<p>To achieve this, head to <a href=\"https:\/\/panel.dreamhost.com\/index.cgi?tree=domain.manage&amp;\" target=\"_blank\" rel=\"noopener\">Hosted Domains<\/a>, and click the <b>Restore<\/b> button on the right-hand side.<\/p>\n\n\n\n<p>Then, choose how far you want to go back in time, and select the \u201cMake backup copy live\u201d option. This will replace your current live site with your chosen backup.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"592\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Whole-Website.jpg\" alt=\"If you\u2019ve tried other fixes and nothing seems to work, you might just need to restore your site to how it was before the client errors arrived.\" class=\"wp-image-39998 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Whole-Website-300x111.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Whole-Website-1024x379.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Whole-Website-768x284.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Restore-Your-Whole-Website-1536x568.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-600x222.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-1200x444.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-730x270.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-1460x540.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-784x290.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-1568x580.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Restore-Your-Whole-Website-877x324.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/592;\" \/><\/figure>\n\n\n\n<p>If you\u2019re using DreamPress, you can complete the same process by visiting <a href=\"https:\/\/panel.dreamhost.com\/index.cgi?tree=wordpress.dreampress&amp;\" target=\"_blank\" rel=\"noopener\">Managed WordPress<\/a> and tapping the <b>Manage<\/b> button beside your domain.<\/p>\n\n\n\n<p>Next, select the <b>Backups<\/b> tag and hit <b>Restore<\/b> on the archived version you want to use. Confirm with <b>Start restore<\/b>, and your site will soon be back to the way it was, without the 405 error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-10-double-check-your-a-records\"><b>10) Double-Check Your A Records<\/b><\/h3>\n\n\n\n<p>One final tip: make sure the <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/360035516812#A_record\" target=\"_blank\" rel=\"noopener\">A records<\/a> for your domain are configured correctly.<\/p>\n\n\n\n<p>In some cases, you may see 405 errors if your A records are pointing towards the wrong server. For instance, a server that is set up for hosting your website might have different rules than one set up for hosting an <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/217560167-Application-programming-interface-overview\" target=\"_blank\" rel=\"noopener\">API<\/a> (Application Programming Interface).<\/p>\n\n\n\n<p>If your domain is registered or managed via DreamHost, you can check your A records by visiting <a href=\"https:\/\/panel.dreamhost.com\/index.cgi?tree=domain.dashboard#!\/grid-view\" target=\"_blank\" rel=\"noopener\">Manage Websites<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tap on the three dots<\/li>\n\n\n\n<li>Select <b>DNS Settings<\/b> from the menu<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"632\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Double-Check-Your-A-Records.jpg\" alt=\"In some cases, you may see 405 errors if your A records are pointing towards the wrong server.\" class=\"wp-image-39999 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records.jpg.webp 1600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Double-Check-Your-A-Records-300x119.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Double-Check-Your-A-Records-1024x404.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Double-Check-Your-A-Records-768x303.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Double-Check-Your-A-Records-1536x607.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-600x237.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-1200x474.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-730x288.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-1460x577.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-784x310.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-1568x619.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/04\/Double-Check-Your-A-Records-877x346.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/632;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-bonus-stop-405-errors-on-your-api-calls\"><b>Bonus: Stop 405 Errors on Your API Calls<\/b><\/h3>\n\n\n\n<p>If your site relies on a connection with an external API, you might come across a 405 error because the API server is refusing your request. This is often down to incorrect request formatting.<\/p>\n\n\n\n<p>To prevent this from happening, make sure to include a &#8220;Content-Type&#8221; header with your POST requests. Here are some examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>Java\/PHP <\/b>\u2013 Content-Type: application\/json<\/li>\n\n\n\n<li><b>HTML<\/b> \u2013 Content-Type: text\/html; charset=UTF-8<\/li>\n\n\n\n<li><b>XML<\/b> \u2013 Content-Type: application\/xml<\/li>\n<\/ul>\n\n\n\n<p>It\u2019s also a good idea to include an \u201cAccept\u201d header:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>Java\/PHP <\/b>\u2013 Accept: application\/json<\/li>\n\n\n\n<li><b>HTML<\/b> \u2013 Accept: text\/html<\/li>\n\n\n\n<li><b>XML<\/b> \u2013 Accept: application\/xml<\/li>\n<\/ul>\n\n\n\n<p>Be sure to check API documentation, as well. You might find out that the type of request you\u2019re making is not supported by the API. Likewise, your site or application logs may reveal the underlying problem here.<\/p>\n\n\n\n<h2 id=\"h-how-to-stop-the-405-error-from-returning\" class=\"wp-block-heading\">How to Stop the 405 Error From Returning<\/h2>\n\n\n\n<p>Working through all of the steps mentioned above is no small task. But if you\u2019re willing to put in the effort, you should be able to banish all 405 errors that are showing up on your website or app.<\/p>\n\n\n\n<p>Want to make sure you don\u2019t go through the whole thing again? Here are a few key tips:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>Test your site<\/b> \u2013 Whenever you install new plugins or themes, make sure to run some tests. If the change is going to cause 405 errors, it\u2019s good to know early!<\/li>\n\n\n\n<li><b>Pay attention to authentication <\/b>\u2013 Always keep an eye on who has access to what resources on your server.<\/li>\n\n\n\n<li><b>Help your users to troubleshoot <\/b>\u2013 In the majority of cases, 405 errors are isolated to a specific user. Consider setting up custom error pages that include information about how users can fix the problem themselves.<\/li>\n<\/ul>\n\n\n\n<p>With a little persistence, you can conquer the 405 error once and for all, and provide a seamless browsing experience for your visitors!<\/p>\n\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<h2>Get Content Delivered Straight to Your Inbox<\/h2><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>","protected":false},"excerpt":{"rendered":"<p>Funny enough, HTTP error codes are both really useful and incredibly frustrating at the same time. Seeing an error when you load a page makes it very clear that something has gone wrong with the website \u2014 But most of us haven\u2019t got the faintest clue about what \u201c405 Method Not Allowed\u201d means, let alone [&hellip;]<\/p>\n","protected":false},"author":1062,"featured_media":40055,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_metadesc":"Learn why you are seeing 405 errors appearing on your website, and discover the steps to fixing the problem with this easy-to-follow guide.","toc_headlines":"[[\"h-what-is-the-405-method-not-allowed-error\",\"What Is the 405 Method Not Allowed Error?\"],[\"h-how-to-fix-the-405-method-not-allowed-error\",\"How to Fix the 405 Method Not Allowed Error\"],[\"h-how-to-stop-the-405-error-from-returning\",\"How to Stop the 405 Error From Returning\"]]","hide_toc":false,"footnotes":""},"categories":[13127,550,696],"tags":[],"class_list":["post-39983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-errors-troubleshooting","category-tutorials","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Fixing the 405 Method Not Allowed Error - DreamHost<\/title>\n<meta name=\"description\" content=\"Learn why you are seeing 405 errors appearing on your website, and discover the steps to fixing the problem with this easy-to-follow guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"405 Error? Here\u2019s How to Fix \u201cMethod Not Allowed\u201d\" \/>\n<meta property=\"og:description\" content=\"Discover 405 error causes &amp; fixes with our comprehensive guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-06T21:20:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-22T02:11:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Your-Guide-to-Fixing-the-405-Method-Not-Allowed-Error-Social-Image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jason Cosper\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"405 Error? Here\u2019s How to Fix \u201cMethod Not Allowed\u201d\" \/>\n<meta name=\"twitter:description\" content=\"Discover 405 error causes &amp; fixes with our comprehensive guide.\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason Cosper\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fixing the 405 Method Not Allowed Error - DreamHost","description":"Learn why you are seeing 405 errors appearing on your website, and discover the steps to fixing the problem with this easy-to-follow guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/","og_locale":"en_US","og_type":"article","og_title":"405 Error? Here\u2019s How to Fix \u201cMethod Not Allowed\u201d","og_description":"Discover 405 error causes & fixes with our comprehensive guide.","og_url":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2023-04-06T21:20:20+00:00","article_modified_time":"2025-05-22T02:11:28+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/Your-Guide-to-Fixing-the-405-Method-Not-Allowed-Error-Social-Image.jpg","type":"image\/jpeg"}],"author":"Jason Cosper","twitter_card":"summary_large_image","twitter_title":"405 Error? Here\u2019s How to Fix \u201cMethod Not Allowed\u201d","twitter_description":"Discover 405 error causes & fixes with our comprehensive guide.","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Jason Cosper","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#article","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/"},"author":{"name":"Jason Cosper","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/2273b8bf7336df78f6d99a89c17253c4"},"headline":"Your Guide to Fixing the 405 Method Not Allowed Error","datePublished":"2023-04-06T21:20:20+00:00","dateModified":"2025-05-22T02:11:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/"},"wordCount":2761,"publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/405-error.jpg","articleSection":["Errors &amp; Troubleshooting","Tutorials","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/","url":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/","name":"Fixing the 405 Method Not Allowed Error - DreamHost","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#primaryimage"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/405-error.jpg","datePublished":"2023-04-06T21:20:20+00:00","dateModified":"2025-05-22T02:11:28+00:00","description":"Learn why you are seeing 405 errors appearing on your website, and discover the steps to fixing the problem with this easy-to-follow guide.","breadcrumb":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#primaryimage","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/405-error.jpg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2023\/04\/405-error.jpg","width":1460,"height":1095,"caption":"how to fix the 405 Method Not Allowed Error"},{"@type":"BreadcrumbList","@id":"https:\/\/www-dev.dreamhost.com\/blog\/fixing-the-405-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dhblog.dream.press\/blog\/"},{"@type":"ListItem","position":2,"name":"Your Guide to Fixing the 405 Method Not Allowed Error"}]},{"@type":"WebSite","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website","url":"https:\/\/www-dev.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www-dev.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www-dev.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/2273b8bf7336df78f6d99a89c17253c4","name":"Jason Cosper","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/02\/IMG_4807-scaled.jpeg","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/02\/IMG_4807-scaled.jpeg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/02\/IMG_4807-scaled.jpeg","caption":"Jason Cosper"},"description":"Jason is DreamHost\u2019s WordPress Product Advocate, based out of Bakersfield, CA. He is currently working on making our DreamPress product even better. In his free time, he likes to curl up on the couch and watch scary movies with his wife Sarah and three very small dogs. Follow him on Twitter.","url":"https:\/\/www-dev.dreamhost.com\/blog\/author\/jasoncosper\/"}]}},"lang":"en","translations":{"en":39983,"es":40033,"pt":51706,"pl":51712,"de":56993,"ru":57002,"uk":57005,"it":68280,"fr":70145,"nl":70176},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/39983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1062"}],"replies":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/comments?post=39983"}],"version-history":[{"count":8,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/39983\/revisions"}],"predecessor-version":[{"id":51259,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/39983\/revisions\/51259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/40055"}],"wp:attachment":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=39983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=39983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=39983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}