Current time: 07-28-2017, 07:48 AM Hello There, Guest! (LoginRegister)

Post Reply 
404 page doesn't always load correctly
02-04-2004, 09:56 AM
Post: #1
404 page doesn't always load correctly
I've got a 404 page for a site and also a subdomain of the site. The 404 page (missing.html) is uploaded in each directory to the root level. When I test it live...the 404 page loads fine if, for instance you type: http://www.example.com/badpage.html

But if you go one level deeper, like:
http://www.example.com/badpage/bagpage.html

...it loads the 404 page but not the images or the style sheet associated with it. Why? I haven't built this page any differently then I have for the rest of the site, which has multiple levels in the directory. What do I need to fix?

Thanks!

Jamie
Find all posts by this user
Quote this message in a reply
02-04-2004, 11:35 AM
Post: #2
404 page doesn't always load correctly
On a 404 page, styles, images, .js files etc. are included relative to the actual address of the non-existant file -- therefore you need to code error pages so it doesn't matter where they are called from, either including the full url <img src="http://www.example.com/images/image.gif" /> or an address relative to the root of the site which will start with a / like this: <img src="/images/image.gif" />
Visit this user's website Find all posts by this user
Quote this message in a reply
02-04-2004, 03:39 PM
Post: #3
404 page doesn't always load correctly
Crys-
Thanks. I figured it might be something like that...but I just wanted to make sure. I'll try that.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: