[BUGFIX] Fix RewriteRule for context to avoid HTTP 500