Canonical Domain Name URL Rewrite – How to Redirect domain name to www domain name on IIS 8

Canonical Domain Name URL Rewrite – How to Redirect domain name to www domain name on IIS 8

Enforcing a Canonical Domain Name. This helps to specify what domain name you want to use for your site and it will redirect the traffic to the right host name.

For example: your have added multiple domain names binding to your website so the website is working on all those domain names but you want all the domains to be redirected to one domain name.

like:
petercrys.com
www.petercrys.com
itzoz.com

Redirected to: www.itzoz.com

you can do this by using url rewrite canonical domain name.

Also See:

https://www.youtube.com/watch?v=wC3kJnhlofw

15 Comments

  1. Guinevere Hernandez on August 19, 2021 at 9:31 pm

    Hello. May I know whats inside the index file? What are the codes? Thank you in advance.



  2. Matheus Mokwa on August 19, 2021 at 9:40 pm

    I spend like 5 hours trying to figure out my DNS configuration… when all I had to do was follow this tutorial. Thank you Sachin, It really helped me.



  3. kensley lewis on August 19, 2021 at 9:40 pm

    How do we do this same process one level deeper? I want http://www.domain/something to go to another site.



  4. Bob Patterson on August 19, 2021 at 9:41 pm

    Thank you so much for this short but to the point video. We recently migrated a client to new local servers and moved all the web sites over but they would not respond based on the www – Several other tutorials took me to the URL Rewrite module installation and configuration but the magical part I was missing was the additional binding for the www – Thank you again .



  5. Raymond van der Jagt on August 19, 2021 at 9:42 pm

    Thanks, very helpful!



  6. McBane AndAssociates on August 19, 2021 at 9:42 pm

    Doesn’t work at all



  7. hanming zheng on August 19, 2021 at 9:44 pm

    Like your videos. Simply Useful



  8. Sachin Patel on August 19, 2021 at 10:04 pm

    Gr8 Work



  9. Rubén Juliá on August 19, 2021 at 10:05 pm

    Thank you very much. It was really useful to me. I was making 2 sites and an http redirection to do this until now… this looks like the way to go.



  10. fayaz khan on August 19, 2021 at 10:06 pm

    could please tell me how to get those asp.net application which you are explained



  11. ShibaPrasad Banerjee on August 19, 2021 at 10:10 pm

    good



  12. muhammad ateeq on August 19, 2021 at 10:13 pm

    thanks brother Sachin you are good teacher and developer may almighty bless you always with his blessings Ameen.



  13. Frank Ifeamazi on August 19, 2021 at 10:15 pm

    Thanks Samy, this videos help me alot.



  14. Naga Raja on August 19, 2021 at 10:21 pm

    very good Sachin



  15. Rehanofc1 on August 19, 2021 at 10:27 pm

    Very useful video.Thanks Sachin!