我怎么能做一个301redirect这种模式:/([^ /] +)(?= / [^ /] + /?$)在我的.NET解决schemeredirect/ en / solutions / exemple到/ en / exemple在我的web.config文件中
PS:我是新来的.NET和IIS,这就是为什么我问
<system.webServer> <rewrite> <rules> <rule name="regex redirect" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="\/([^\/]+)(?=\/[^\/]+\/?$)" /> </conditions> <action type="Redirect" url="/en/solutions/exemple" redirectType="Permanent" /> </rule> </rules> </rewrite>
谢谢