Forum Moderators: DixonJones
My pages use CSS styles via the @import mechanism. The problem appears on pages that are in a subdirectory, (but not on pages in the root directory). My pages will have (in-between style tags) @import "../stylies.css";
The 404 error has a peculiar format. Browsers are trying to get files like this:
GET /dir/My%20Title_files/stylies.css
where "dir" is directory name, "My Title" is the actual title of the page (not the filename), and "_files" appears in every request.
I'm really puzzled because pages in my root directory don't seem to cause similar error log entries. Thanks in advance.
instead of this ../stylies.css which is saying go up one level and get it, it could be set up from the root of the site.
/stylies.css // if it is at root level
/dir/stylies.css // if it is in a dir down from root
I don't really understand where the errors come from but since they only happen below root then it ould seem to me that there is a path problem.
If there's a bug in (some versions of) IE that causes it to fail saving/resolving relative path names in @import rules from such saved pages, that might explain the 404s.
Internet Explorer creates a folder named *title*_files locally, and stores a copy of the stylies.css file in there, along with any gifs and jpegs referenced by the page.
I just tried this from IE 5.5 on winNT, and I didn't get any error written into my error logs, so it must be happening with some other versions of IE.
It doesn't look like there's anything I can do about it either. I might have to give up using @import. (I'm also surprised about how many people are saving locally.)