Change rewrites into redirects (and fix relative paths problem)