
*.htc file being offered to download and site not displaying
Hello, I've inherited a Joomla website with a template which uses CSS3PIE. For the most part the site works. But sometimes, and this is randomly, it stops working and offers the .htc file for download. Regardless as to which page on the site I try to go to, and regardless as to which browser I'm using the .htc file is offered for download. This continues until I restart the Apache service, then everything goes back to normal.
I've added "AddType text/x-component .htc" line to my httpd.conf thinking this might fix the problem, but nothing.
So then I added the "text/x-component htc" to my mime.types file but the behavior continues.
Here's the snippet on the template's index.php that references the PIE.php file. Not sure if this helps
Code:
<!--[if lt IE 9]>
<style type="text/css">
.border{ behavior:url(<?php echo $path ?>/PIE.php) }
</style>
<![endif]-->
<link rel="stylesheet" href="<?php echo $path ?>/css/constant.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $path ?>/css/template.css" type="text/css" />
</head>
<style>
.navigation .menu > li#current.parent > a, .navigation .menu > li.parent > a:hover, .navigation .menu > li.sfHover > a, .navigation .menu li ul, .inner, .lof-articlessroller .lof-inner, .error dd ul {
behavior:url(<?php echo $path ?>/PIE.php)
}
</style>