I know next to nothing about php so this will make someone laugh probably.
I have this bit of code in index.php which checks a host header and redirects if a match is found.
if (!preg_match("/site1.net.nz/",$host)) {
header('Location: http://www.siteblah.net.nz/temp_internet_block.cfm');
}
However, I need to make it check on potentially multiple sites. as follows.
if (!preg_match("/site1.net.nz/"|"/site2.net.nz",$host)) {
header('Location: http://www.siteblah.net.nz/temp_internet_block.cfm');
}
This might actually be the correct syntax for all I know:-)
Or