Fix rewrite_base

rewrite_base was broken because it uses -%> instead of %>, but also because
RewriteBase is only valid in a <Directory> context.