enable html5mode & add url rewrite rule