删除散列时angularjs重新加载问题的Mongoose重写规则

删除散列时angularjs重新加载问题的Mongoose重写规则,angularjs,apache,.htaccess,mongoose,url-rewriting,Angularjs,Apache,.htaccess,Mongoose,Url Rewriting,在一个应用程序中,我将AngularJS与Apache和Mongoose服务器PHP一起使用,在删除哈希问题时遇到了重新加载问题。通过在htaccess文件中添加以下代码,我在Apache服务器中解决了这个问题 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME

在一个应用程序中,我将AngularJS与Apache和Mongoose服务器PHP一起使用,在删除哈希问题时遇到了重新加载问题。通过在htaccess文件中添加以下代码,我在Apache服务器中解决了这个问题

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)       /index.html
</IfModule>

重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)/index.html
但在Mongoose服务器中,我不知道在哪里编写重写规则以及如何解决它?有什么帮助吗