Angular routing, refreshing gives 404, .htaccess not working
angularjs, apache
Solution
Try this .htaccess:
Options +FollowSymLinks
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule (.*) index.html [L]
</ifModule>
Problem
This has been asked multiple times, but still i don't seem to figure out whats the problem in my angular app. My routing works fine, until I refresh the page and it gives me "page not found". Popular solution is that I add a .htaccess file to the root of my app, but it's still not working. I've even tried differrent .htaccess scripts.