Angular 如何为AWS API网关上的状态路由添加重写规则
在,您可以阅读有关如何为不同的服务器设置(例如IIS)将回退/url重写配置为index.html的内容(我已成功完成) 我正在互联网上搜索(到目前为止没有任何成功),寻找一个类似的解决方案,但AWSAPI网关。有人知道如何在技术堆栈中重写url吗?也就是说,我想让url重写与此类似(对于IIS),但对于AWS API网关:Angular 如何为AWS API网关上的状态路由添加重写规则,angular,amazon-web-services,aws-api-gateway,angular-routing,Angular,Amazon Web Services,Aws Api Gateway,Angular Routing,在,您可以阅读有关如何为不同的服务器设置(例如IIS)将回退/url重写配置为index.html的内容(我已成功完成) 我正在互联网上搜索(到目前为止没有任何成功),寻找一个类似的解决方案,但AWSAPI网关。有人知道如何在技术堆栈中重写url吗?也就是说,我想让url重写与此类似(对于IIS),但对于AWS API网关: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServ
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Angular 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="./index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>