Add rewrite rule to register as well.