#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    7
    Rep Power
    0

    Unhappy 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.
    e.g. http://www.mydomain.com/incl/text.css

    I have a php page, which I called hello.php, is put under the root.
    e.g. http://www.mydomain.com/hello.php

    In hello.php, I linked the css file using the following code..

    <HEAD>
    ....
    <link href="incl/gtext.css" rel="stylesheet" type="text/css">
    .....
    </HEAD>

    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!
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    7
    Rep Power
    0
    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)!
  4. #3
  5. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    URL (/gstyle.css);
    IS this a typo too?

    Cheers,
    Jamie

    >_ 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.

    __________________
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    7
    Rep Power
    0
    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!!
  8. #5
  9. HTML/CSS/Photoshop maven
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    CA
    Posts
    184
    Rep Power
    13
    I get a 404 for both pages you listed...
  10. #6
  11. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    @arden,
    i think mydomain.com is just a generic domain used as an example, and not his actuall domain
  12. #7
  13. HTML/CSS/Photoshop maven
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    CA
    Posts
    184
    Rep Power
    13
    ...Duh. Didn't even notice that.

IMN logo majestic logo threadwatch logo seochat tools logo