How to Add RedirectToCanonicalUrlAttribute filter in MVC-5 RRS feed

  • Question

  • User-910783107 posted
    Hi all...
    I'm trying to add RedirectToCanonicalUrlAttribute filter in MVC 5 app. Got the code below from another site. It is

    GlobalFilters.Filters.Add(new RedirectToCanonicalUrlAttribute(

    But I don't know how or the specific place to add it on my server. Please any help?
    Wednesday, August 22, 2018 8:28 AM

All replies