Last post Jul 14, 2019 07:03 AM by Mikesdotnetting
Jul 14, 2019 03:01 AM|MrProgrammer|LINK
I uploaded ASP.NET MVC Website on somee.com, which is free ASP.NET Hosting,
but after i finish upload database and all website files, when i try to go to my website which is for example: htttp://domainname.com , it redirected to https://domainname.com
and get the welll known page:
i do not know why it redirected from http to https
Jul 14, 2019 04:38 AM|KathyW|LINK
That's a question for your host, assuming you didn't put redirect rules in your web.config to go to https.
Jul 14, 2019 07:03 AM|Mikesdotnetting|LINK
If this is a .NET Core application, chances are that it has been configured to use HTTPS, as Kathy alluded to. The configuration is in your Startup file. Remove app.UseHsts(); and app.UseHttpsRedirection(); from the
Configure method. Then republish.