.NET Articles, Web Devploment, ASP.NET, HTML, Sharepoint 2010, Aamir Hasan
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here



Posted by Aamir Hasan   on Saturday, October 8, 2011 Total Views:  

I have written in my previous article Capitalized and lowercase canonical URL issue in Global.asax file. Now in this article, I will demonstrate how automatically redirect non-canonical links to canonical URL with permanently moved by using IIS 7 URL rewrite module 2.0. For Example, if user searches any word from search engine and he will find non-canonical links of your site like, SEO.html but actually this page is seo.html, both pages have same content but search engine will treat them as two different page. We will use new IIS rewrite rule to fix this issue. 

Let’s start


Note: Make sure you have IIS 7 or higher version and URL Rewrite 2.0 Extension installed before going to apply all below steps to your site.


Step1: Open your IIS 7, expand Site node, and click on your web site. You will see the URL Rewrite extension installed as shown below.


Step2: Double click on URL Rewrite extension, you will see Add Rule link on right side of Actions panel as shown below.


Step3: Click on Add Rule link, Add Rule(s) dialog box will be pop up as shown below.


Step 4: Under Search Engine Optimization (SEO) template, select Enforce lowercase URLs and click ok button.


Add a rule that will enforce lowercase URLs dialog box will open to ask you, do you want to create a rule, click yes button as shown in below figure.


When you will click yes button it will automatically create a rule to enforce user to convert non-canonical link to lower case URLs.


Here’s the rule created in your Web.Config of this site.







Category: All | IIS7 | SEO
Protected by Copyscape Online Plagiarism Tool
kunal singh
kunal singh India
2/27/2020 6:46:54 PM #

Thank you Sir it's working great

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5