Still getting 'Not Found' when manually refreshing with angular.js route

后端 未结 4 870
孤街浪徒
孤街浪徒 2021-01-17 19:30

After reading a ton of write-ups and stackoverflow questions on Angular.js route, I\'m still getting the \'Not Found\' error when I do a manual refresh.

Steps:

4条回答
  •  [愿得一人]
    2021-01-17 20:08

    This .htaccess setting worked well for me

    
        Options +FollowSymlinks
        RewriteEngine On
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_URI} !^/$
        RewriteRule (.*) /#!/$1 [NE,L,R=301]
    
    

提交回复
热议问题