Modify rewrite rule to allow user/training rewrites