added missing trailing slash in rewriteurl