add rewrite rules file and setup the server to support it