I want to create a custom search engine(SE) friendly 404 page to handle 404 (Not found) and 404-like content. In theory everything should be done in application.cfc page with a few lines of code.
Here is what I have in mind. CF code needs to recognize the 404s, redirect to SE friendly 404-page.cfm (for example) and then to redirect to the index.cfm!? Also it would be great if the code could recognize both http://www.whatever.com/abc.html and http://www.whatever.com/abc/ as 404s.
The question is, should I use onMissingTemplate()?
Please give me some example or at least tell me where to start.