cfs date
400 2019-05-14
400 2019-05-15
350 2019-05-16
60 2019-05-17
60 2019-05-18
60 2019-05-19
60 2019-05-20
cfs date

this is in place here for idahogis.com

edit the template index.php file and add the following AS THE VERY FIRST LINES of the install's primary index.php.

<?php
$domain = $_SERVER["HTTP_HOST"];
$uri = $_SERVER["REQUEST_URI"];
$url = $domain . $uri;

if (($url == "idahogis.com/") ||
   ($url == "www.idahogis.com/")) { 
   header("Status: 301 Moved Permanently");
   header("Location: https://www.idahogis.com/index.php?option=com_content&view=category&layout=blog&id=3&Itemid=12"); 
}
?>

Here's the benefit: The visitor will now be redirected to the appropriate Red Site page, that has the Red Template assigned to it only in the case where they have arrived at the 'red site' domain name. Otherwise, the conditional PHP rule is ignored, and the Yellow Site loads.

Copied from here: joomla redirect how to