404 Handling

The normal error handling in our control panel does not work with .cfm because ColdFusion grabs all requests for .cfm files before the default handlers. You need to use a .htaccess file instead that looks like this: 

RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /404handler.cfm [L] 

If you already have rules in a .htaccess file, add this to the end. 

Was this answer helpful?

 Print this Article