我有关于使用web.config进行重定向的问题。这是godaddy.com上托管的word-press网站。服务器IIS 7.0它是窗口服务器。
我希望从旧的html页面重定向到新的wordpress页面。 例如:
http://www.dakshadesign.com/Ecommerce_Web_Design.html至http://www.dakshadesign.com/ecommerce-website-design-web-development-company-india/
现在受到重视
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Redirect to dakshadesign.com" stopProcessing="true">
<match url="^Ecommerce_Web_Design.html$" />
<action type="Redirect" url="http://www.dakshadesign.com/ecommerce-website-design-web-development-company-india" appendQueryString="false" />
</rule>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>