Monday, July 25, 2011

How to redirect

Below are examples on how you can redirect your website. When someone visits your site and you want the traffic to go somewhere else. Choose your language, modify url and copy and paste.

Javascript:

<script>
location.replace("http://baligena.com") //or
location = "http://baligena.com";
</script>


PHP:

<?php
header( 'Location: http://www.baligena.com' ) ;
?>


HTML:

<meta HTTP-EQUIV='REFRESH' content='0'; url='http://www.baligena.com'>

No comments:

Post a Comment