Thursday, February 16, 2017

AdSense - Matched Content


Wednesday, February 15, 2017

PHP Redirect Based on URL (main domain and alias)

PHP code:

<?php
if(isset($_SERVER['HTTP_HOST']) && ($_SERVER['HTTP_HOST'] == "hddio.com" || $_SERVER['HTTP_HOST'] == "www.hddio.com"))
{
header("Location: http://www.hddio.com/hdd/");
exit();
}
else
{
?>  
<!DOCTYPE>
<html>
<head>
<title>Under Construction</title>
</head>
<bodyd>
<p>This page is under construction. Please come back soon!</p>
</body>
</html>
<?php
}
?>