简体   繁体   中英

MVC 5: Handling .html Page Redirect

MVC uses .cshtml for the view pages. I want to combine with .html pages.

The problem if I put index.html in the navigation, it will bypass all the redirection process and will just load index.html directly. This raises a problem when I encrypt my website within SSL/TLS, the resulting page will be just in http:// not https:// .

Is there a way I can control so the .html page redirect is encrypted in SSL/TLS?

If the .html pages are local, why not just enforce https only?

How to force HTTPS using a web.config file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM