Skip to main content

Posts

Showing posts with the label Redirect incoming requests to specific URLs in IIS 7

Redirect incoming requests to specific URLs in IIS 7

The Rule "aboutus" is redirect a specific page to a another page. The Rule "legal" is to redirect the all html files from a folder to a specific page. <system .webserver="">         <rewrite>           <rules>             <rule name="aboutus">               <match url="^about-us.html$"></match>               <action type="Redirect" url="/index.html"></action>             </rule>             <rule name="Legal">               <match url="^Legal/(.*).html$"></match>               <action type="Redirect" url="/index.html"></action>             </rule>          ...