How to solve cannonical url issue in iis server

In so many cases we need to redirect permanent 301 by non-www to www._____ Url to solve the canonical issue,because of this the Google consider two domain for single domain name like as follows
  1. www.xyz.com
  2. xyz.com


To solve this issue follow the represented steps

Step 1
Install URL REWRITE Module in IIS server



Step 2
Create a Inbound Rule in Url Rewrite Module
















Step 3
Specify the Url Pattern to check whether the url is specify the condition or not
























Step 4

Now specify the action Type  to Redirect 301



















Step 5

Check the output with the non-www to www redirection with 301 rule

Happy Programming





Comments

Anonymous said…
thanks...