Fixing rewrite links to work in production.

Assumed relative links, but links instead depend
on SITEURL.