EtienneDupuis

URL Canonicalization - ASP.NET (IIS)

Mar 29th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.45 KB | None | 0 0
  1. <configuration>
  2.   <system.webServer>
  3.     <rewrite>
  4.       <rules>
  5.         <rule name="Redirect to WWW" stopProcessing="true">
  6.           <match url=".*" />
  7.           <conditions>
  8.             <add input="{HTTP_HOST}" pattern="^domain.com$" />
  9.           </conditions>
  10.           <action type="Redirect" url="http://www.domain.com/{R:0}" redirectType="Permanent" />
  11.         </rule>
  12.       </rules>
  13.     </rewrite>
  14.   </system.webServer>
  15. </configuration>
Add Comment
Please, Sign In to add comment