Questa e' la "mia" pagina 404... con un minimo di fantasia scopri come funziona
codice:
<script>
//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL = document.URL;
//this is where the http or https will be, as found by searching for :// but skipping the res://
protocolIndex = DocURL.indexOf("://",4);
//this finds the ending slash for the domain server
serverIndex = DocURL.indexOf("/",protocolIndex + 3);
//for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
//of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
BeginURL = DocURL.indexOf("#",1) + 1;
urlresult = DocURL.substring(BeginURL,serverIndex);
page = DocURL.substr(serverIndex+1);
location.replace("/smistamento.asp?prov="+page);
</script>
<h2>404 - Pagina non trovata</h2>