www.webdeveloper.com
Results 1 to 2 of 2

Thread: 404 Page

  1. #1
    Join Date
    Feb 2006
    Posts
    17

    404 Page

    I bought a web server form 1and1 and when there is a 404 error it goes to one of their error pages. They say I can make my own. How do I do this, do do this through them, or can I just uplaod one through my ftp access.

  2. #2
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    You can create one just like you would any html page, and upload it into your root, name it something like error_404.htm or you could even make an error_pages directory and just name it 404.htm (whatever you like) then, create a .htaccess file (just create it in notepad and save with the file name .htaccess) that contains the following rewrite rule
    ErrorDocument [errorcode] [page location]
    example:
    Code:
     ErrorDocument 404 error_pages/404.html
    Some links
    http://www.garnetchaney.com/htaccess...d_tricks.shtml
    http://lists.evolt.org/archive/Week-...07/032019.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles