Changes http refs to relative paths.