Ember/Ember-Cli Serving through Apache throws 404

[亡魂溺海] 提交于 2019-12-04 12:53:20

You need to route everything to index except the files that exist:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.html#$1 [L]
Vinicio Ajuchan

If you can back to hash, you can change the locationType setting it to "hash".

Check it out the next answer: https://stackoverflow.com/a/28630973/4425050

I had the same problem and I fixed it with that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!