Added nginx rewrite rules, thanks melaur