Forcing http using .htaccess

前端 未结 2 1719
南方客
南方客 2021-02-02 00:01

This is the script I have right now, how do I have my script force all traffic to http, currently it is doing the exact opposite, it is forcing all traffic to https.

         


        
2条回答
  •  长情又很酷
    2021-02-02 00:59

    In the processwire htaccess look for these lines

    # -----------------------------------------------------------------------------------------------------------------------------------------------

    If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below.

    # -----------------------------------------------------------------------------------------------------------------------------------------------

       RewriteCond %{HTTPS} off
       RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
    

    # -----------------------------------------------------------------------------------------------------------------------------------------------

    If you only want to allow HTTP use the code below

    # -----------------------------------------------------------------------------------------------------------------------------------------------

    RewriteCond %{HTTPS} on
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]
    

提交回复
热议问题