Method Not Allowed: The HTTP verb used to access this page is not allowed [SOLVED]

Method Not Allowed: The HTTP verb used to access this page is not allowed

This error was happening on a PHP page after I moved it to an IIS server.

The PHP code was something like this:

header("Location: /some/path.html");
exit; 

I just had to change it by removing the “/” from the start, like:

header("Location: some/path.html");
exit; 

or better yet, include the full host name like:

header("Location: http://www.yourwebsite.com/some/path.html");
exit; 

 

Leave a Reply

Your email address will not be published. Required fields are marked *