Posted in March 28, 2010 ¬ 7:09 pmh.adminComments Off
The most efficient method for webpages redirection is 301 redirect. The code 301 means “moved permanently”. Here we have an example for php 301 redirect
<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-website.com” );
?>
Read the rest of this entry »
Posted in October 25, 2009 ¬ 7:14 pmh.adminComments Off
$sites = array(
‘http://www.google.com/’,
‘http://www.msn.com/’,
‘http://www.yahoo.com/’
)
header(’Location: ‘.$sites[array_rand($sites)]);
die();
You can add your own websites. If you need help with any php code contact us
Read the rest of this entry »