I'm trying to make a regex or series of regexes that will rewrite relative URLs as absolute URLs in a PHP file. In my particular situation, I don't think I can use the Apache mod-rewrite module . . .
Gary Illyes from from the Google Search Relations team posted another PSA on LinkedIn, this one says "don't use relative paths in your rel-canonical." Gary wants you to use the full, absolute URL, ...