Results 1 to 5 of 5

Thread: customize Error 404

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default customize Error 404

    Hey,
    How can I make a customized Error 404 page ?

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    If you are hosted on a free server that gives you their own default error page, then you may not be able to customize your own. Please follow the below steps:

    1. Develop and upload a webpage called 404page.html (this file will act as your 404 error page)

    2. Create a new file using your text editor (notepad will do), type only this into a new file, changing the url to point to the path of your 404page.html file.

    ErrorDocument 404 http://www.yoururl.com/404page.html

    3. Save the file as .htaccess.

    Now upload this file into your root directory which contains all your other webpages.

    Thats it. If your web host supports .htaccess file then you'll have your own 404 error page

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Works perfectly. Thanks a lot !
    The reason why it didn' work before is because I worked with windows instead of Linux !

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    It should actually work with both.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Yes it will work with Windows & Linux. I think you did some non-correct items while you use Linux.

    Anyway the issue got resolved.

Bookmarks

Posting Permissions

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