How to route in angular 4

前端 未结 3 904
情话喂你
情话喂你 2021-02-14 12:14

I have an angular 4 project and when I run it from localhost:4200/route-a, it works fine and when I refresh the browser, all works well as expected. However, when I

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-14 12:36

    As of Apache version 2.2.16, you can use the FallbackResource directive for this:

    
      FallbackResource index.php
    
    

    Check https://httpd.apache.org/docs/trunk/rewrite/remapping.html#fallback-resource

提交回复
热议问题