December 9th, 2003, 04:25 PM
http code 404 for css file
this problem has been bothering me for quite a while:
I kept all the fonts and border attributes in a separate file named gtext.css and put it in my "incl" folder.
I have a php page, which I called hello.php, is put under the root.
In hello.php, I linked the css file using the following code..
<link href="incl/gtext.css" rel="stylesheet" type="text/css">
the world's perfect; I checked the hello.php with IE 6.0 and Netscape 7.1; both browsers displayed the page correctly.
the problem is; I was looking at the web statistics, and an alarming number of error hits (http code 404) keeps growing. Here is the no.1 ranked error hits:
URL (/gstyle.css); Number of error hits (179); Referer(http://www.mydomain.com/hello.php)
Of the top 10 ranking in error hits, 7 or 8 of them points at my gtext.css file.
Does it have anything to do with the lack of support from the old browers? Or do I link the file incorrectly? If so, how come I can view hello.php without any problem?
Thanks in advance!
December 9th, 2003, 04:28 PM
please ignore the possible naming errors: I found out that I have text.css instead of gtext.css at the top.
This is not the root of the problem; it's just my typo (sorry)!
December 9th, 2003, 04:35 PM
>_ skiFFie ? | Twitter
Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.
December 9th, 2003, 06:44 PM
yep it is (i'm really sorry about it)
the strange thing is, I can view hello.php perfectly (which means naming file part should not be a problem), and yet the error hits keep mounting....eerrrrr!!
December 10th, 2003, 06:41 AM
I get a 404 for both pages you listed...
December 10th, 2003, 07:10 AM
i think mydomain.com is just a generic domain used as an example, and not his actuall domain
December 10th, 2003, 06:44 PM
...Duh. Didn't even notice that.