reverting relative uri, adding new rewrite rules for nginx