added preg_replace for content urls