added a rewrite to handle angularjs rules on a page reload