I am trying to change all relative links to absolute links so they are consistant and easier to work with.
I have this code...
$pattern = '#href[\s]*\=[\s]*(\'|"|)(\|/|)#i'; $replace = 'href="'.$_POST['site']."/"; $html = preg_replace($pattern, $replace, $html); }
However when I open google with this done, the links are still relative.
Any assistance in correcting and understanding the problem is greatly appreciated.