404 error processing with ColdFusion

Posted on 2011-05-12
Last Modified: 2013-12-25
I'm interested in doing more analysis and processing of web requests that generate 404 errors on our site. Is there a variable that can be captured in the ColdFusion code on my 404.cfm page that gets hit when a page is requested that doesn't exist?  I tried doing a cfdump of CGI.REQUEST_URI in my 404.cfm page and then typed in a bogus URL on our site, but the cfdump returned the URL of the 404 page itself.  I'd like to actually capture and document what pages are being requested which don't exist.  How can I capture that info?
Question by:benjaminfam
    LVL 23

    Accepted Solution

    - here is a coldfusion documentation on handling request page out of error 404, getting the path and page requested :

    Author Closing Comment

    This is perfect!! It is exactly what I was looking for.  This article addresses the exact scenario that I wanted this information for.  Thank you so much.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
    This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
    Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now