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:
This site can’t be reached
i do not know why it redirected from http to https
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.
Member
135 Points
220 Posts
Hosting problem in somee.com
Jul 14, 2019 03:01 AM|MrProgrammer|LINK
Hi guys,
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:
This site can’t be reached
i do not know why it redirected from http to https
Contributor
5961 Points
2466 Posts
Re: Hosting problem in somee.com
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.
All-Star
194444 Points
28074 Posts
Moderator
Re: Hosting problem in somee.com
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();
andapp.UseHttpsRedirection();
from theConfigure
method. Then republish.