ASP.net MVC site : Redirect all “non WWW” request to WWW

后端 未结 4 842
面向向阳花
面向向阳花 2021-02-04 18:26

Recently I migrated an ASP.net site to ASP.net MVC site. Earlier there were two host headers one mydomain.com and another is www.mydomain.com. My SEO says you should use only on

4条回答
  •  死守一世寂寞
    2021-02-04 18:57

    Unfortunately, the URL rewrite module does not work with IIS6 (only IIS7 or greater). Have you considered creating your own HttpModule, something like this this?

    IIS 6 how to redirect from http://example.com/* to http://www.example.com/*

    Or you could potentially use a 3rd party solution like one of these:

    http://iirf.codeplex.com/

    http://www.urlrewriting.net/149/en/home.html

    http://www.isapirewrite.com/

    http://urlrewriter.net/

提交回复
热议问题