Require HTTPS for .Net Core Web Site

  • Thread starter Thread starter DaveIII
  • Start date Start date
D

DaveIII

Guest
We have a .Net Core Web site and want to require HTTPS. If the user accesses the site from a bookmark that has http, I'd like them to automatically be rerouted to the same address via https. My interpretation of Enforce HTTPS in ASP.NET Core is that "app.UseHttpsRedirection();" would accomplish this. Instead, some 404's are generated. If I hit the 404's directly with an https address, they work fine.

How can we require the web site to require https?

We are using .Net Core 2.1.

Continue reading...
 
Back
Top