Correctly switching between HTTP and HTTPS using .htaccess

后端 未结 6 1781
挽巷
挽巷 2020-11-28 08:14

We\'ve got a shopping site which we\'re hosting on a shared host (Mediatemple Gridserver). Some parts of the site need to use HTTPS (checkout etc) but the rest should be usi

6条回答
  •  醉梦人生
    2020-11-28 08:45

    As detailed in this answer, fix your application to use https:// links when needed. Don't rely on automatic redirections, this could lead you to a false sense of security if you haven't made your links/forms served over https:// go to https:// URLs too. Using mod_rewrite automatically makes it harder to detect such mistakes (which can also be vulnerabilities).

提交回复
热议问题