Hello, Dreamweave 8 Coldfusion MX7 I want to create a custom error message for pages that do not exist. For instance: Say my website is www.mywebsite.com. Also, say that I have a webpage at www.mywebsite.com/login.cfm. Now, if some types into their browser "www.mywebsite.com/loginn.cfm" by accident, it would say: INSTEAD, I'd like it to go to a default error page, that I customize. I could then say, "either click back on your browser to return where you came from, or try again!" I thought my errorexception.cfm would take care of this, but it does not. Any thoughts?
IT all depends if your host allows it but if it does make a custom .shtml file example my site is www.googleminigames.com 404 Page . www.googleminigames.com/404.shtml It is like regualr HTML but with an shtml extension Its funny . My site is www.googleminigames.com/index.php www.googleminigames.com/indexx.php 404 error
Check out the live docs on building a custom error page. You should be able to build one custom page for exception type errors and a seperate one for request type errors. The request error should handel what your looking for. http://livedocs.adobe.com/coldfusio...xt=ColdFusion_Documentation&file=00000242.htm
Still not working... I get the following error message when I type in a page that i know does not exist: File not found: /mywebsite/loginn.cfm Code (markup): I made an ErrorRequest.cfm page. It is simply this: <h1>Error</h1> <p>No page here. </p> Code (markup): I included the following code in my application.cfc: <cferror type="Request" mailto="webmaster@mywebsite.com" template="ErrorRequest.cfm"> Code (markup): What am I doing wrong?
Dont worry, your not alone. I'm having the exact same problem. I'm working on it though. When I figure it out I will bring you up to speed too. Unless you figure it out first, then you can tell me.