Redirect IIS产品的Mass 301重定向39/user-manual.html>;产品39/用户手册/
对于大型站点中的许多页面,IIS只将以.html结尾的页面移动到“页面名称”文件夹,实现Mass 301重定向的最佳方法是什么?我正在使用Windows Server 2016 例如: product56/download.html>product56/download/ product56/user-manual.html>product56/user-manual/ 但是,如果指定了index.html,则不应重定向到文件夹,而应重定向到根目录,例如: product47/index.html>product47/ 然后我还有大约300个单独的aspx页面需要重定向到自定义URL,例如:Redirect IIS产品的Mass 301重定向39/user-manual.html>;产品39/用户手册/,redirect,iis,Redirect,Iis,对于大型站点中的许多页面,IIS只将以.html结尾的页面移动到“页面名称”文件夹,实现Mass 301重定向的最佳方法是什么?我正在使用Windows Server 2016 例如: product56/download.html>product56/download/ product56/user-manual.html>product56/user-manual/ 但是,如果指定了index.html,则不应重定向到文件夹,而应重定向到根目录,例如: product47/index.htm
cart/Label-Software-P590.aspx>products/Label-Software/niceware/在我看来,您可以使用IIS url重写来实现您的需求,您可以从这里下载它 product56/download.html>product56/download/ product56/user-manual.html>product56/user-manual/ Url重写包含友好的Url,您可以使用它来实现您的要求。有关详细信息,请参阅本文: 对于指定的html,您应该自己编写自定义url 例如: product47/index.html>product47/
购物车/Label-Software-P590.aspx>产品/标签软件/niceware/
<rewrite>
<rules>
<rule name="inde" stopProcessing="true">
<match url="product47/index.html" />
<action type="Redirect" url="http://yourdomian/product47/" />
</rule>
</rules>
</rewrite>
<rewrite>
<rules>
<rule name="inde2x" stopProcessing="true">
<match url="cart/Label-Software-P590.aspx" />
<action type="Redirect" url="http://yourdomian/products/label-software/niceware/" />
</rule>
</rules>
</rewrite>