41 users online (0 members and 41 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 3
  2. Replies: 8
  3. Replies: 0
  4. Error MySQL Error: 1064 - subqueries    Forum: PHP Forum
    Replies: 0
  5. [duplicated]web page error    Forum: Web Hosting Forum
    Replies: 11
  1. #1
    sredhead's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Location
    Japan
    Posts
    2

    404 error page problems

    I have a customised 404 page for my site which works fine and shows all jpgs/giffs if error occurs in main page. However, if a 404 error occurs in a subdirectory the 404 page shows but the jpgs/giffs are missing. Does this mean I have to put the icons in each directory, or is there another solution?
    Example:
    http://stevenredhead.com/car.html works fine
    http://stevenredhead.com/Ecology/fish.html - no jpgs/giffs.
    Any ideas how to resolve are most welcome.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there, welcome to the forums.

    With 404 pages, no matter where you are they always call the root page, so this can cause this problem.

    Easiest was is to use absolute paths for your images, so instead of
    HTML Code:
    <img src="picture.jpg">
    use
    HTML Code:
    <img src="/picture.jpg">
    This solved the problem for mine, hope it works for you too.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    sredhead's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Location
    Japan
    Posts
    2

    404 page

    Thanks QuiteDean,

    Got success. Thank you for your time and ideas.

    Cheers
    Steven



Tags for this Thread