My current webpage is listed in Google as http://www.rg-s.co.uk/suvatcalculator.php/
.
Due to the fact it has the end /
, the CSS does not load correctly. Yet when I access the page normally via http://www.rg-s.co.uk/suvatcalculator.php
, the page loads fine.
Is there a way I can redirect the page with /
to the correct page using 123-Reg?
Thank you in advance,
if(isset($_SERVER["PATH_INFO"]) && !empty($_SERVER["PATH_INFO"])
{
$protocol="http";
if(isset(_SERVER["HTTPS"]))
{
$protocol="https";
}
header ("Location: $protocol//{$_SERVER["HTTP_HOST"]}/{$_SERVER["SCRIPT_NAME"]});
exit;
}