Fixing redirect from /api/ to sub-domain