📜  url 刷新问题 angular 8 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:42.508000             🧑  作者: Mango

代码示例1

    RewriteEngine on

    # Don't rewrite files or directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Rewrite everything else to index.html
    # to allow html5 state links
    RewriteRule ^ index.html [L]