Forum Moderators: Robert Charlton & goodroi
if ( $_SERVER["HTTP_HOST"] == "example.com" )
{
header( "Location: http://www.example.com".$_SERVER["REQUEST_URI"] );
exit( );
}
This can also be done using the .htaccess file with apache. Check out the apache we server forum to find more info on using that method.