moves rewrite_rules to location_header.erb

so it can be used by every location