Added rewrite to remove trailing forward slashes