Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: error pages

  1. #1
    Registered User
    Join Date
    Jan 2003
    Location
    CT
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts

    error pages

    how would i make error pages?
    I.E:

    real link: http://www.warpcell.com/articles/
    mis-typed link: http://www.warpcell.com/article/

    how would i make it so if the user did the mis-typed link it would direct them to a custom error page?

  • #2
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You mean unknown typos, any typos?

    Got Apache? Try mod_speling.
    http://httpd.apache.org/docs/mod/mod_speling.html
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #3
    Registered User
    Join Date
    Jan 2003
    Location
    CT
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what would i do on that site? i read over it but didnt find anything on how do do what i asked...

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok... if you're allowed to use .htaccess then try this:

    make an error page which can be understood by non-geeks and then make a file called ".htaccess" (sometimes windows doesnt like having nothing infront of the dot... in which case call it "mongooses.htaccess" and remove the "mongooses" bit when youve uploaded it. )

    in your file youve just created put this:

    ErrorDocument 404 http://www.example.com/errorpage.html

    Edit: make sure that page exists or youre server will be stuck in endless loops...


    you could mess around with other errors too, 401, 403, 500, and 501 are the most common. actually 200 would be the most common... thats always good fun...

    now read this:

    http://javascriptkit.com/howto/htaccess.shtml

    does that help at all?
    Last edited by redhead; 02-09-2003 at 06:23 PM.
    redhead


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •