Answer the question
In order to leave comments, you need to log in
How to use https connection in Asp.net MVC?
How to use http is clear, but how to change everything to https in Asp.net MVC?
Thank you.
Answer the question
In order to leave comments, you need to log in
Configuring an ASPNET project for development with SSL
How to enable SSL for a .NET project in Visual Studio
Implementing HTTPS Everywhere in ASP.Net MVC appli...
professorweb.ru SSL
By the way, usually SSL is terminated on a proxy server, such as nginx (it is also available under Windows , if you suddenly need it).
In this case, the backend works just with http.
In the Linux world, this is the most commonly used solution.
all links in the project are changed +
- <rewrite>
- <rules>
- <!-- BEGIN rule TAG FOR HTTPS REDIRECT
-->
- <rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
- <conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
- <!--
END rule TAG FOR HTTPS REDIRECT
!!!!!!!!!! If there are already other <rule> tags in your web.config, then place the copied <rule> tag before the other <rule> tags.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question