How can I avoid duplicate content in ASP.NET MVC due to case-insensitive URLs and defaults?

前端 未结 7 1134
无人及你
无人及你 2020-12-24 03:22

Edit: Now I need to solve this problem for real, I did a little more investigation and came up with a number of things to reduce duplicat

相关标签:
7条回答
  • 2020-12-24 04:17

    I believe there is a better answer to this. If you put a canonical link in your page head like:

    <link rel="canonical" href="http://mydomain.com/Home/Index"/>
    

    Then google only shows the canonical page in their results and more importantly all of the google goodness goes to that page with no penalty.

    0 讨论(0)
提交回复
热议问题