Forum Moderators: phranque
I'm slightly baffled by the the situation I'm in. I have a nice CSS layout on my page that places a background image as per:
#top-bg{
background:url(/images/top-bg.png) no-repeat 0 0;
...
}
127.0.0.1 - - [12/Oct/2007:09:44:00 +0100] "GET /florals/images/top-bg.png HTTP/1.1" 404 342 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
127.0.0.1 - - [12/Oct/2007:09:52:51 +0100] "GET /images/top-bg.png HTTP/1.1" 304 - "http://monkey/css/all.css" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7"
http://www.example.com/folder/ http://www.example.com/page.php?id=folder The pertinent bits of mod_rewrite rules (thanks to some other good folks on the WW forums)
RewriteRule ^(manager/[0-9a-z._\-]*$¦editor/¦ajax/¦images/¦css/¦js/¦errors/¦go/¦include/) - [NC,L,QSA]
RewriteRule ^([0-9a-z/\-]+)/?$ /index.php?id=$1 [NC,L,QSA]
(NB, I previously posted this in the CSS forum, where nobody was able to help so I cross posted here, if I've broken any rules, please accept my apologies)
The form of the background URL you're using is "server-relative" (not "absolute") and should always resolve to example.com/images/top-bg.png
Obviously, IE6 is not resolving that properly, so two solutions might be:
1) mod_rewrite to detect IE6 and strip off the errant subfolder(s).
2) Use an absolute/canonical URL, like
background:url(http://example.com/images/top-bg.png)
Jim