Fix nginx rewrite rules;