redirect http to https through httpd.conf

后端 未结 2 413
夕颜
夕颜 2021-01-25 09:02

Need to change http to https.

http://myServerName/itf/sheldon/imex/ajax/share_details/v1/CH0012221716/issuer/contact.json **Should change to**          


        
2条回答
  •  日久生厌
    2021-01-25 09:42

    Set up your virtual host file / httpd.conf to have lines

    
      ServerName enter.yoursite.com
      Redirect / https://enter.yoursite.com/
    
    
    
      ServerName enter.yoursite.com
      ServerAdmin some@email.com
      Insert EVERYTHING else in here (rewrite rules, log file stuff, etc)
    
    

    This will force the website to always redirect to HTTPS and then load all the configurations you want under HTTPS.

提交回复
热议问题