OK. so I add
<cfheader statuscode="200" statustext="OK">
right above my CFLoc in the 404 handler.  Now it works fine.

But I have another page that is misbehaving in the same way, and this leads me to think that the problem is not in the 404 redirect, but in the cflocation process (which has been working fine until now). BTW, I'm in CF 4.5.

I have a form proccessing page that reads a form submitted thru the "GET" method. according to a URL variable, the user is forwarded (via cflocation) to the appropriate page. But more often than not, I get the error messages descrbed below, that I got in the previous problem.

so I stuck the cfheader line in front of each cflocation tag and now it all works fine. But why should I have to do that everytime I use cflocation?

Thanks all!

JGG

__________/ Jolly Green Giant \__________
Actually, it seems to be giving a 500 error. IE users will see the 500 error, but Firebird just shows "Network is busy". Firebird also does change the URL in the location bar to be the proper page to be forwarded to, so that when I hit refresh, the right page loads.

I wonder if a 500 header is sneaking in and that's what the browsers are reading. I wonder if somehow using <CFHeader> would help.

__________/ Jolly Green Giant \__________
Hi guys,

I'm using a custom 404 page to read a few specific urls and then forward them to the appropriate page. However, more times than not, I get a "Network is busy" message. I then hit refresh, and the page comes up as it should have the first time.

Here are two urls which should call this 404 page and then be rerouted:
www.quickverse.com/install
www.quickverse.com/qvupdates

I think the problem lies in my code. Maybe the page is returning part of an error message first, so the browser uses that instead of doing the forwarding. Does anyone know why this is happening? Here's my code...

<cfscript>
requrl = ListGetAt(query_string, 2, "; "); // The first element is 404, and the second is the requested URL.
simpleurl = ListDeleteAt(requrl, 1, "/");
</cfscript>
<cfif REFindNoCase("w?w?w?\.?quickverse\.com/install/?", simpleurl)>
<!--- QuickVerse Installation Help --->
<cflocation url="http://www.quickverse.com/products/quickverse/install_main.cfm"; addtoken="No">
<cfelseif REFindNoCase("w?w?w?\.?quickverse\.com/qv8faq/?", simpleurl)>
<!--- QuickVerse 8 FAQ --->
<cflocation url="http://www.quickverse.com/products/quickverse/"; addtoken="No">
<cfelseif REFindNoCase("w?w?w?\.?quickverse\.com/qvupdates/?", simpleurl)>
<!--- QuickVerse Updates --->
<cflocation url="http://www.quickverse.com/products/quickverse/updates.cfm"; addtoken="No">
</cfif>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on Oct 17, 2002 5:06:36 PM -->
<html>
<head>
<title>404 - Page does not exist</title>
.......


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]




--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to