404 error page redirection

Discussion in 'HTML & Website Design' started by cnjai20, Jul 12, 2012.

  1. #1
    Hello all,

    My website was hosted in windows server and it was build in HTML, only feedback page is build with PHP.

    I wan to know , how to create a 404 error page redirection in my HTML website ?

    Thanks in advance

    rrmch.org
     
    cnjai20, Jul 12, 2012 IP
  2. xboom

    xboom Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just make a html file calling 404.html and upload it to your host
     
    xboom, Jul 15, 2012 IP
  3. devjohndevon

    devjohndevon Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    You can place the 404 error template anywhere you want. For example you could place all error messages in a folder called errormessages
     
    devjohndevon, Jul 15, 2012 IP
  4. WebFerret

    WebFerret Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Creating and uploading a 404.html file is the first step.
    You will also need to ensure your htaccess file contains the code:

    ErrorDocument 404 /404.html

    Which will direct any visitors to your 404.html page should an error occur.
     
    WebFerret, Jul 16, 2012 IP
  5. JT12

    JT12 Banned

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5

    You can also redirect the user to your home page this way.

    In your .htaccess file:

    ErrorDocument 404 /index.html
    Code (markup):
     
    JT12, Aug 2, 2012 IP
  6. cnjai20

    cnjai20 Well-Known Member

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #6
    I am using windows server , then how .htaccess file dude ?
     
    cnjai20, Aug 13, 2012 IP
  7. softlogique

    softlogique Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The Error 404 "Page not found" is the error page displayed whenever someone asks for a page that’s simply not available on your site. The reason for this is that there may be a link on your site that was wrong or the page might have been recently removed from the site. As there is no web page to display, the web server sends a page that simply says "404 Page not found"
     
    softlogique, Aug 14, 2012 IP
  8. vijaychauhan007

    vijaychauhan007 Member

    Messages:
    333
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #8
    add a URL to 404.html file and redirect it to your desired page1
     
    vijaychauhan007, Aug 14, 2012 IP
  9. bluebelt91

    bluebelt91 Well-Known Member

    Messages:
    879
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #9
    I hope this will work:

    If you have access to the server then you can create a 404 by going to your properties for the WWW service, go to the Custom Errors tab and just select the file you want to use for you 404 at the 404 box!
    If its only cPanel access then just go to the Error Pages button, and select 404 (wrong page) and you can insert html there.
    Please let me know if it works, I have unix server so can't try it.
     
    bluebelt91, Aug 14, 2012 IP