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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Farum, Denmark
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how can i redirect to my own error page, if link is broken

    I have a problem i hope someone can help me solve.

    Instead of the usual server responses if a page or a file is not available any more i want to make a script that checks a link and returns my own error page if the link is broken.

    At the moment i could use it for a cdrom menu that works as a simple file browser wich contain links to more than one CD.
    so if the links not available the user should be directed to insert another CD

    Thanks in advance
    JBO

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Bonny Scotland! Status: Insane
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    I don't know if you can do it in JavaScript but I do know that you can do it in Perl.
    Try out http://www.shavenferret.com/ if your want to try it.

    Good luck, gaffer
    «Ðå G壣ꮻ²ºº²

  • #3
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Well I beleive every web server has some method for handling server errors (404 Not Found and the like) in apache, you can do this with .htaccess.


  •  

    Posting Permissions

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