Custom 404 error page

Discussion in 'Programming' started by lespaul00, Jan 4, 2008.

  1. #1
    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?
     
    lespaul00, Jan 4, 2008 IP
  2. googleminigames.com

    googleminigames.com Banned

    Messages:
    1,335
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    googleminigames.com, Jan 4, 2008 IP
  3. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Unfortunately, this does not work. Any other ideas?
     
    lespaul00, Jan 4, 2008 IP
  4. googleminigames.com

    googleminigames.com Banned

    Messages:
    1,335
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Whats your WEBHOST?
     
    googleminigames.com, Jan 4, 2008 IP
  5. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hostek.com
     
    lespaul00, Jan 4, 2008 IP
  6. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #6
    unitedlocalbands, Jan 5, 2008 IP
  7. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Oh duh... I just read that in my book. Thanks for clarifying it for me!
     
    lespaul00, Jan 5, 2008 IP
  8. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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?
     
    lespaul00, Jan 5, 2008 IP
  9. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #9
    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. :)
     
    unitedlocalbands, Jan 5, 2008 IP