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.

CSS Forum


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



Closed Thread
weird 404 styling errors
Old 10-08-2010, 07:11 PM weird 404 styling errors
Skilled Talker

Posts: 83
Trades: 0
Hi, I have created a missing.php file which the user is redirected to if the page they are trying to access does not exist. I use GoDaddy as a host and I set up the 404 error section so it redirects correctly. It works if the user tries to go to www.mysite.com/fakefile.html
This would redirect the user to missing.php

However, if they go down a directory, things start to get funky. Example:

www.mysite.com/directory/fakefile.html

This redirects to the missing.php, but any styling it had before is nowhere to be seen.

My missing.php is in my Root Directory. I tried making a duplicate and placing it in the sub folders and places ../ on any images, css files, etc.

Last edited by Smudly; 10-08-2010 at 07:21 PM..
Smudly is offline
View Public Profile
 
 
Register now for full access!
Old 10-08-2010, 07:14 PM Re: weird 404 styling errors
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Use root relative links for the style sheet rather than document relative.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 10-08-2010, 07:17 PM Re: weird 404 styling errors
Skilled Talker

Posts: 83
Trades: 0
D'oh!!!

Fixed. Thanks
Smudly is offline
View Public Profile
 
Closed Thread     « Reply to weird 404 styling errors
 

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.21306 seconds with 12 queries