web page loads and immediately redirects to 404 error page in Internet Explorer 8

_____________________________
problem: a web page loads, and then immediately redirects to a 404 error page in Internet Explorer 8

this occurred on a web page of mine, because a CSS file it used, contained a url directive like this:

 behaviour: url(PIE.htc);  


The URL 'PIE.htc' was incorrect, and so, caused the following behaviour in Internet Explorer 8:
  • the page loaded, seemingly OK
  • then immediately a 404 error page would show.

_____________________________
solution: correct the URL:

 behaviour: url(/path/to/pie/PIE.htc);  

note: the purpose of the CSS code above, is to load the PIE extension to add CSS3 support to Internet Explorer.  In particular, PIE makes it easy to round the corners of a div (Such operations are supported by default by the webkit browsers like Google Chrome).

Comments