index.html:

<script language="JavaScript">window.location.href="http://mysite.com"</script> 

I check index.html through Avast, and he starts “gently, almost whispering” to say that a threat has been discovered. Why?

    2 answers 2

    This is what page? You have a forced redirect. And maybe even cyclical.

      Avast itself is a stupid antivirus, it may be buggy ...
      The language not used (outdated), type recommended, although if there is JavaScript, then it is not necessary to specify it, because by default it is!
      Can swear that such a direct redirect is sometimes (more often than we would like) used in doorway pages.
      And avast can also define a link as poisonous (a dangerous site in its database).