View Full Version : Error 405 when submitting a Form
11-18-2003, 03:56 AM
Every time I attempt to submit a form on my site, I keep getting an Error 405 Method not Allowed. I was told that it could have something to do with the .htaccess file, but I can't seem to figure out the correct command to put in there to make it work. Can someone help me please?
11-20-2003, 02:39 PM
This will explain the errors and solutions...
I've heard of rare instances where this can happen with a firewall on the user's box, though I tend to not fully give that weight. If you do have an htaccess, try renaming it to a non-htaccess file and see if it works. It seems unlikely, but in theory there could be items in there that could cause a form submission to be denied...although, logically, if the htaccess contained information (such as denying an IP, for example) which prevented you from sending the form, then you shouldn't have even been able to see the form. It is also possible that your host has disabled the POST method...though this would be strange. If this is done through SSL, there are a few hosts who disable POST via SSL connections. Denying post methods is an option in the httpd.conf file. Additionally, it may not have anything to do with your form being POSTed, but actually a function you are using on the backend code that is meant to process the form that may have been blocked by the host.
It may be an issue where you need to CHMOD the file processing the form to 755, or even/additionally the direct it is contained within. As it is, I am unsure of what environment you are working in and what server language you are using to run this form, so I can't really get too much more detailed...
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.