Quote:
Originally Posted by NeutralizeR
Open vbseo\includes\functions_vbseo.php, find
Code:
$durl = 'http://'.$_SERVER['HTTP_HOST'];
right below this line there is a line starting with $newtext.
Replace:
Code:
$newtext = preg_replace('#<head>#i', "$0\n".'<base href="'.$durl.(defined('VBSEO_BASE_URL')?VBSEO_BASE_URL:'').'/" /><!--[if IE]></base><![endif]-->', $newtext, 1);
width:
Code:
if(THIS_SCRIPT != 'amp')
{$newtext = preg_replace('#<head>#i', "$0\n".'<base href="'.$durl.(defined('VBSEO_BASE_URL')?VBSEO_BASE_URL:'').'/" /><!--[if IE]></base><![endif]-->', $newtext, 1);}
|
Thank you so much! I tried several things and couldn't get it to work. And this worked great!
AMP is now being validated.
Thanks again. I appreciate your help.