SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Peterborough, England
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using a FREE ISP, supporting only the basic types of web coding. Is it possible say the if someone types in a page that is not on my site ie. http://www.freesite.fsnet.co.uk/notthere.htm, for me to make say that instead on them getting the normal “error” page, they can instead view my own error page that I create?

    I look forward to a reply,

    Internationally.

  2. #2
    SitePoint Zealot
    Join Date
    Dec 1999
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your server uses Apache so you can create an .htaccess file in your root directory with the following directive:

    ErrorDocument 404 http://www.site.com/notthere.htm

    Good luck!

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Peterborough, England
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what is Apache and .htaccess?

    How would i set the file up?

    Please explain in more detail...

  4. #4
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Apache Server is the Web server software your Web host is running. If you ever want to find out what server a Web site is running, visit this site: http://netcraft.com/whats/?host=www....te.fsnet.co.uk

    An .htaccess file describes a few basic options you want the Apache Server to recognize. It takes directives to tell it what to do. In this case the directive you're using is ErrorDocument.

    Because there is already an excellent guide on .htaccess files, and I don't want to repeat what has been said better, I'll point you to this URL: http://echodev.com/tutorials/misc/htaccess/index.shtml


    Hope this helps.

  5. #5
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You need to check with your ISP to see if this can be done. Not all free ISP's allow the use of .htaccess files within your website and some have even disabled them (GeoCities comes to mind).
    Wayne Luke
    ------------



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
  •