rewrite to redirect to a view reference