| View previous topic :: View next topic |
| Author |
Message |
thumperuk
Joined: 20 Nov 2006 Posts: 4
|
Posted: Nov 26, 2006 3:51 pm Post subject: Error 405 when trying to use redirect |
|
|
When I change url_post from "mysite.com/post.php" to "index.htm" (or any other redirect link), I keep getting "HTTP 405 - Resource not allowed "error.
It appears that a redirect can only be another php file? Or am I doing something wrong!
I am using Pro 2.3 - version 2.2 worked fine redirecting to another page after uploading!
Any help greatly appreciated.! |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Nov 27, 2006 7:48 am Post subject: |
|
|
Sorry for this bug. It looks that IIS do not allow POSTing to .html files
Here goes the quick fix that will appear in next version:
in upload.cgi add this above "if($ENV{QUERY_STRING}!~/js_on=1/)"
| Code: |
if($url_post=~/\.htm(l|)$/i)
{
print"Content-type: text/html\n\n";
print"<HTML><HEAD><Script>parent.document.location='$url_post'</Script></HEAD></HTML>";
exit;
}
|
this will redirect to URL if it's .htm(l), other case POST |
|
| Back to top |
|
 |
thumperuk
Joined: 20 Nov 2006 Posts: 4
|
Posted: Nov 30, 2006 2:47 pm Post subject: Thanks |
|
|
| Many thanks - works perfectly now!! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|