Getting a 405 Not Allowed Error – What’s Causing It and How to Fix? or Why Am I Seeing a 405 Not Allo

18 Replies, 1000 Views

405 errors are usually server-side, but yeah, they’re annoying af.

Double-check your form’s `action` URL—maybe it’s pointing to the wrong place? Also, verify the HTTP method in your form tag (`method="POST"`).

If you’re using WordPress, the REST API might be the culprit. Try adding this to your .htaccess:

```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_METHOD} !^(GET|POST) [NC]
RewriteRule .* - [R=405,L]
</IfModule>
```

Messages In This Thread



Users browsing this thread: 1 Guest(s)