API Sites: Fix api version url re-write to handle cross site links

Closes gh-318