Posts Tagged ‘php redirect’

How to redirect to another page

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 »

PHP Script – Random redirects to sites

$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 »
 

© 2006 - 2009 BNCScripts.com . All right reserved.