Ok I've set up a 404 page for http://www.penair.com.au When I go to a page within the root folder which no longer exists it works fine... EG: http://www.penair.com.au/125213 But...when the page they're looking for is within another folder...it doesnt (in this case the folder is called 'pdf' it doesnt seem to see any of the code or images? http://www.penair.com.au/pdf/12354 Can anyone help me out please? Thanks Rach
It's because the link to the style sheet is now incorrect as you have gone into a folder. Your link was this - <link href="style.css" rel="stylesheet" type="text/css" /> For the folder, you need it changed to this.. <link href="../style.css" rel="stylesheet" type="text/css" />
Yep just tried it and if I do that it doesnt link to the style sheet. I've added that as a 2nd link and that works to some degree..but it still doesnt link to the images... Anymore advice anyone? Thanks Rach
So I guess you're using includes which has the <style> tag in one file and it is included on all the pages? In that case, it's best to define the site's base url in a file. E.g $base_url = 'www.mysite.com/'; and then use absolute url's in your links. E.g href="<?php echo $base_url; ?>style.css" That means that, no matter where the style sheet is called, it will work. Same thing can be done for images if they are defined in the html sheets. <img src="<?php echo $base_url; ?>image.jpg" />