changed rewrite to redirect
changed rewrite to redirect