Bugfix in url rewritng on localhost