Igor Kitsula - Developer

A Programmer Reference

 

URL Rewriter. Remove default.aspx from the URL

Search engines (like Google) see URL which ends with trail slash "/" and URL with default document (default.aspx) at the end of the same URL as two different pages with the same content, title, etc. So for SEO purposes it’s good to get rid of default page at the end of URL. Here is simple rule for URL Rewriter to sole this problem.

Read more...Read more...

Rewriter. Redirect to with or without www

One of the good rules of SEO is to keep domain name of website the same. This rule include prefix www. To implement this rule we can use simple rule for URL Rewriter:

<rewrite>
   <rules>
     <rule name="Redirect to kitsula.com without www." stopProcessing="true">
       <match url=".*" />
       <conditions>
         <add input="{HTTP_HOST}" pattern="^www.kitsula.com$" />
       </conditions>
       <action type="Redirect" url="http://kitsula.com/{R:0}" redirectType="Permanent" />
     </rule>
   </rules>
</rewrite>
Read more...Read more...