Added rewrite rules
Added 301 headers