Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
404 error page problems
Old 10-25-2003, 11:14 PM 404 error page problems
sredhead's Avatar
Novice Talker

Posts: 5
Location: Japan
Trades: 0
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.
__________________
Cheers,
Steven
sredhead is offline
Reply With Quote
View Public Profile Visit sredhead's homepage!
 
 
Register now for full access!
Old 10-26-2003, 02:02 AM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
You'll have to use static linking to make sure your base page is always the same. If the images are in www.yourdomain.com/images then in order for it to show up, you have to either use the full URL (i.e. http://www.domain.com/images/image.gif) or put a "/" (without the quotes) in front of the directory (which is essentially the same as writing out the whole "http://www.domain.com").

The way your code is written is for dynamic linking. Add a "/" in front of all of the image URLs and you should be good to go.

The only problem with this is if you do testing on a local machine, images won't show up (with some exceptions, of course, i.e. you're testing on a linux box or have all your documents in C: ).
techwench is offline
Reply With Quote
View Public Profile
 
Old 10-26-2003, 02:47 AM Got it
sredhead's Avatar
Novice Talker

Posts: 5
Location: Japan
Trades: 0
Hi Prissed,

Glad I spelt your name correctly; miss the 'r' out and I could be in trouble!

Thank you for the reply - I understand and thank you for the direction, will give it a try.

Cheers,
Steven
http://stevenredhead.com
__________________
Cheers,
Steven
sredhead is offline
Reply With Quote
View Public Profile Visit sredhead's homepage!
 
Reply     « Reply to 404 error page problems
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29087 seconds with 12 queries