Angular 5来自密码重置电子邮件的路由
我正在使用Angular 5开发密码重置功能,但在正确配置IIS以使其正常运行时遇到问题,因此我的url实际上是通过Angular路由器运行的 密码重置电子邮件链接类似于Angular 5来自密码重置电子邮件的路由,angular,azure,iis,angular5,Angular,Azure,Iis,Angular5,我正在使用Angular 5开发密码重置功能,但在正确配置IIS以使其正常运行时遇到问题,因此我的url实际上是通过Angular路由器运行的 密码重置电子邮件链接类似于https://myapp.com/reset/ 角度路由配置如下所示 RouterModule.forRoot([ { path: '', redirectTo: 'home', pathMatch: 'full'}, ... other routes ... { path: 'reset/:code', comp
https://myapp.com/reset/
角度路由配置如下所示
RouterModule.forRoot([
{ path: '', redirectTo: 'home', pathMatch: 'full'},
... other routes ...
{ path: 'reset/:code', component: ResetPasswordComponent},
{ path: "**", redirectTo: 'home' }
])
这是我的web.config文件。我在网上找到了这个列表,用于在azure中托管angular应用程序
<?xml version="1.0"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<mimeMap fileExtension=".woff2" mimeType="font/woff2" />
</staticContent>
</system.webServer>
<system.webServer>
<rewrite>
<rules>
<rule name="angular cli routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
试试这个:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable