ILMV Posted November 30, 2008 Share Posted November 30, 2008 Hello all. I hope this is in the correct forum, move if necessary. If an error occurs on my site, it fires (through .htaccess) the error.php page. The problem I have is if the error occurs here 'www.mydomain.com/randompage' then all is well, but if it occurs here 'www.mydomain.com/randompage/sub' the code on my error.php page doesnt work, for example, my style of which is referenced like this... ./images/style.css doesn't fire because it thinks its at www.mydomain.com/randompage/sub/images/style.css Is there a way of solving this problem? or do I have to refernce the entire link to my style 'www.mydomain.com/images/style.css', of which I do not want to do. Thanks Quote Link to comment Share on other sites More sharing options...
laPistola Posted November 30, 2008 Share Posted November 30, 2008 put the full path in, when you say errors do these include php and mysql errors, fatal ones to?? as far as i know htaccess can only handle http errors but i have been looking for a way to use htaccess to handle php and mysql errors also?? Quote Link to comment Share on other sites More sharing options...
ILMV Posted November 30, 2008 Author Share Posted November 30, 2008 404 errors etc, thats why I wasn't sure this thread is best suited. But full path might have to be the way its done... many thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.