Dailycode.info

Short solution for short problems

Redirecting pages with html

If you are looking for code to redirect your site to another site or subfolder, here it is: 

This script leads the old index page to the new web site.

<head> 	
	<script language="JavaScript">window.location="http://www.newwebsite.be/"; </script>
<head> 

 

It is also possible to reload the page after some time as e new page.

Use this script:

<head> 
	<meta http-equiv="REFRESH" content="10;URL=newpage.html"> 
<head>