Thanks for you help. I have created an effective web.config
as below - I have not replaced any existing values (should I ?) - just added the item that you mentioned in your post to the end of the list of existing rules - but it did not work - I am still getting 404.0 error.
In Angular routing configuration I have :
const routes: Routes = [
{ path: '', component: HomeComponent, canActivate: [AuthGuard] },
{ path: 'account', loadChildren: accountModule },
-----------------------------------------------------------------
{ path: 'profile', loadChildren: profileModule, canActivate: [AuthGuard] },
{ path: 'admin', loadChildren: adminModule, canActivate: [AuthGuard], data: { roles: [Role.Admin] } },
{ path: 'schedule', loadChildren: scheduleModule },
{ path: 'report', component: RaportForDateComponent },
{ path: 'floating', component: FloatingSchedulesComponent },
// otherwise redirect to home
{ path: '**', redirectTo: '' }
];
const routes: Routes = [
{
path: '', component: LayoutComponent,
children: [
{ path: 'login', component: LoginComponent },
{ path: 'register', component: RegisterComponent },
{ path: 'verify-email', component: VerifyEmailComponent },
----------------------------------------------
{ path: 'forgot-password', component: ForgotPasswordComponent },
{ path: 'reset-password', component: ResetPasswordComponent }
]
}
];
<?xml version="1.0" encoding="UTF-8"?>`
`<configuration>`
` <system.webServer>`
` <rewrite>`
` <rules>`
` <rule name="Force Index.html" enabled="true" stopProcessing="true">`
` <match url="(.*)"/>`
` <conditions>`
` <add input="{REQUEST_URI}" matchType="IsDirectory" negate="true"/>`
` <add input="{REQUEST_URI}" matchType="IsFile" negate="true"/>`
` <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>`
` <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>`
` <add input="{REQUEST_URI}" pattern="^/account/verify-email" negate="true"/>`
` </conditions>`
` <action type="Rewrite" url="/scheduler/index.html"/>`
` </rule>`
` `
` </rules>`
` </rewrite>`
` </system.webServer>`
`</configuration>`