Overview :
I have an AngularJS application that uses $locationProvider.html5Mode(true)
and it is served from an Apache ser
Inside public_html =>
/app =>
.htaccess try this :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ dist/index.html [L]
Note : HTML
tag should be point to the dist folder. I hope this solution will work as per your expectations.