Posted By

batfan on 02/24/11


Tagged

webconfig


Versions (?)

web.config Page Specific Redirect


 / Published in: ASP
 

Place between the system.webServer tags. Use '(.*)' for variables.

  1. <rewrite>
  2. <rule name="pageRedirect1" stopProcessing="true">
  3. <match url="^old-page\.html" ignoreCase="false" />
  4. <action type="Redirect" redirectType="Permanent" url="http://www.domain.com/new-page.aspx" />
  5. </rule>
  6. </rewrite>

Report this snippet  

You need to login to post a comment.