se usi php fai un header()
Codice PHP:
header'location:http://www.sito.ext/attivi.php' ); 
in js invece
codice:
<script type="text/javascript">
<!--
window.location.href = "http://www.sito.ext/attivi.php";
-->
</script>