View Single Post
Old 2005-06-23, 11:02 AM   #1
Verbal
Verbal prefers 56K
 
Verbal's Avatar
 
Join Date: Sep 2003
Location: Chicago, IL
Posts: 563
Send a message via ICQ to Verbal
Best way to redirect a .net domain to a .com

When I get a good .com domain I like to also pick up the .net version, but I usually don't put anything on there. What is the proper (and SEO friendly) way to foward someone from blah.net to blah.com?

Currently I just do it by putting this on index.php:
PHP Code:
<?php
header
("Location: http://www.blah.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>
__________________
Verbal
Verbal is offline   Reply With Quote