My Index file
<base href="/"/>
In my controller added $Locatonprovider and redirect like this
$location.path('/ui-login');
$locationProvider.html5Mode(true);
.htaccess file
RewriteEngine On
# if an existing asset or directory is requested go to it as it is
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# if the requested resource doesn't exist, use index.html
RewriteRule ^ /index.html
my URL
note: it's work but the problem was when I refresh the page get error 404 file not found
Output:

ui-login.