将传入的请求redirect到IIS 7中的特定URL

我发现在IIS HTTPredirectfunction,但我只能将所有传入的请求redirect到特定的目的地。 是否有可能将传入的请求redirect到IIS中的特定URL? 例如:

my.domain.com/blog/about -> other.domainxyz.com/site/about my.domain.com/blog/post/5 -> other.domainxyz.com/site/5 

UPDATE

这是web.config的样子:

 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="home" stopProcessing="true"> <match url="^$" /> <action type="Redirect" url="http://yojimbo87.github.com/" /> </rule> <rule name="about" stopProcessing="true"> <match url="^Blog/About$" /> <action type="Redirect" url="http://yojimbo87.github.com/about/about.html" /> </rule> </rules> </rewrite> </system.webServer> </configuration> 

尽pipeHTTPredirect在那里,我还没有findangular色服务中的URL重写模块。

这个规则将把特定的传入请求redirect到特定的URL:

 <system.webServer> <rewrite> <rules> <rule name="Redirect Specific Page" stopProcessing="true"> <match url="^blog/post/5$" /> <action type="Redirect" url="http://other.domainxyz.com/site/5" /> </rule> </rules> </rewrite> </system.webServer> 

更新:我已经将它们合并在一起 – 只需使用真实url进行更新即可:

 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="home" stopProcessing="true"> <match url="^$" /> <action type="Redirect" url="http://yojimbo87.github.com/" /> </rule> <rule name="about" stopProcessing="true"> <match url="^Blog/About$" /> <action type="Redirect" url="http://yojimbo87.github.com/about/about.html" /> </rule> <rule name="Redirect Specific Page" stopProcessing="true"> <match url="^blog/post/5$" /> <action type="Redirect" url="http://other.domainxyz.com/site/5" /> </rule> </rules> </rewrite> </system.webServer> </configuration>