Forum Moderators: phranque
I am running Apache 2.055 with ColdFusion 7.01 on Windows 2003
I in my CONF file
ErrorDocument 404 /404/notfound.cfm
When the page that is not found is a CFM, I get all the expected CGI information in my /404/notfound.cfm page; however, when the page that is not found is not a CFM (i.e.. a folder that does not exist) I get /404/notfound.cfm as the cgi.script_name.
Is there any way to get Apache to retain the original cgi info for the page and query_string, too?
TIA,
Thanks,
David Satz
[edited by: jdMorgan at 10:59 pm (utc) on Mar. 29, 2006]
[edit reason] No sigs, please. See Terms of Service. [/edit]
Welcome to WebmasterWorld!
I'm no CF expert, but the server does retain the originally-requested URL in one or more environment variables -- The Apache variable %{THE_REQUEST}, for example, gives the full original browser request line, i.e. "GET /contoct.html HTTP/1.1"
I'm not sure about the server variable-naming conventions used in CF, but I'm sure the variable is available.
Jim