0
pankajmathur created
Hi, In our earlier MVC5.x project we have written rule in our web config file. Can you please let me know where and how to write this when migrated to .netcore 2.0. Thanks in advance
<system.webServer> <rewrite> <rules> <rule name="Redirect to https"> <match url="(.*)"/> <conditions> <add input="{HTTPS}" pattern="Off"/> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/> </rule> </rules> </rewrite> </system.webServer>
1 Answer(s)
-
0
Hi!
Read this: <a class="postlink" href="https://www.softfluent.com/blog/dev/Page-redirection-and-URL-Rewriting-with-ASP-NET-Core">https://www.softfluent.com/blog/dev/Pag ... P-NET-Core</a>