In ASP.Net Core 5.0, how do I route an old .aspx webform to a controller action hosted in IIS

91 Views Asked by At

I have re-written an old Webforms site into ASP.Net Core 5.0 MVC. There are thousands of links to the old .aspx pages indexed by search engines.

What is the best way to Route/Redirect the old .aspx pages to the new controller actions. For example:

The existing link is "https://mywebsite.com/quote.aspx" and I wish to route to "https://mywebsite.com/quote/index".

I found some threads using ASP.Net but can't find a working answer for ASP.Net Core.

0

There are 0 best solutions below