I use the following code in a custom 404 page:
<?php
if(strpos($_SERVER['SCRIPT_NAME'], 'modeler') >= 0 || strpos($_SERVER['SCRIPT_NAME'], 'modeller') >= 0)
header("Location: http://www.americanbeautytools.com/site/index.php?req=learn&sub=hobby&app=1");
elseif(strpos($_SERVER['SCRIPT_NAME'], 'inhouse') >= 0 || strpos($_SERVER['SCRIPT_NAME'], 'in-house') >= 0 || strpos($_SERVER['SCRIPT_NAME'], 'freeinhouse') >= 0 || strpos($_SERVER['SCRIPT_NAME'], 'fite') >= 0)
header("Location: http://www.americanbeautytools.com/site/index.php?req=support&sub=test");
else
header("Location: http://www.americanbeautytools.com/site");
?>
Originally it was just the if and the else. I am trying to add the elseif and it goes to the first redirect if I use any of the elseif options.
Why would it be doing that?