I followed the following guide:
In angular:
$locationProvider.html5Mode(true);
In html add this meta header:
<head> <meta name="fragment" content="!"> </head>
Configure Apache:
RewriteEngine On
Now my index site is finally picked up by Google.
HOWEVER, when I try to go to my sub site, it tells me that it is redirected to index.html
Can someone tell me what I'm doing wrong? I tried this for several weeks and could not find a solution :(
From google-bot-simulator :

google-search apache .htaccess
Marc rasmussen
source share