使用hashbang将PHP站点重定向到angularjs站点


PHP site to angularjs site redirect with hashbang

我从php的旧域名重定向到angularjs的新域名(使用hashbang #!)。我已经在。htaccess文件中设置了重定向,重定向工作正常。但是php用%23代替了has。所以这个路径不能被angularjs视图的配置所识别。我怎样才能克服呢?

查看您的.htaccess文件,看看它是否有No Escape标志。

http://httpd.apache.org/docs/2.2/rewrite/flags.html flag_ne

看起来重写规则正在转义哈希