Whole Network Affiliates Industry Info Marketing mobile SEO sponsored post

 

301 redirect using PHP

Filed in archive SEO by noel on May 10, 2006

301 redirect using PHP
If you read my previous post about duplicating your main page, here's a solution about doing a 301 redirectlinks from http://www.yourdomain.com/index.php to http://www.yourdomain.com.

This one is contributed by a friend of mine Benj of actiononline.biz

This is a 301 redirect using PHP program.

<?
$_SERVER[HTTP_HOST] = strtolower($_SERVER[HTTP_HOST]);
if($_SERVER[HTTP_HOST]=="actiononline.biz" or
$_SERVER[REQUEST_URI]=="/index.php") {
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.actiononline.biz");
exit();
}
?>







Permalink: 301 redirect using PHP
Tags: using  search  engine  redirect  google  search+engine  redirect+using  search+engines 

Trackback: http://www.creative-weblogging.com/cgi-bin/mt-tb.pl/21780





RSSrss   | See all blog subscribe options
Google google   |   What is RSS?
Yahoo! yahoo
Addthis Subscribe using any feed reader!
Bloglines Bloglines
Newsletter
Grouptivity

Use the search to look for other interesting posts



 
  • Advertise with us

  • Learn more about our advertising options or email advertising - at - creative-weblogging.com or give us a call at +1 (650) 331 4900.
  • Marketplace

  • Check weknowdomains.org and get information and stats about pretty much any domain ever registered.


. Paradise Philippines Paradise Philippines fakepenalty

  • Other blogs in the same channel in the Creative Weblogging Network







 

Tagcloud: adsense Affiliates Directories google Industry Info Link Building Live Search Marketing mobile News Page Rank PPC Publishing Search Engine News semantic web SEO SEO Tips social networks sponsored post Traffic Building Twitter Using Search Engines web promotion Wikia Search Yahoo