PHP站点到angularjs站点重定向与hashbang

时间:2015-09-07 17:06:31

标签: php angularjs

我从php中的旧域重定向到angularjs内置的新域(使用hashbang#!)。我已经在.htaccess文件中设置了重定向,重定向工作正常。但是php用%23取代了has。因此angularjs视图配置无法识别路径。我怎么能克服这个?

1 个答案:

答案 0 :(得分:0)

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

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

看起来重写规则正在逃避哈希。