Switching from HTTP to HTTPS, lost all Facebook “Likes”

前端 未结 4 1503
我在风中等你
我在风中等你 2021-01-25 17:42

After switching to https://, all of our articles have lost their Facebook \"Like\" count. So I would like to disable https just for the Content area of our website, which is at

4条回答
  •  再見小時候
    2021-01-25 17:55

    You can use this code:

    RewriteEngine on
    
    # uri is not /content.php
    RewriteCond %{REQUEST_URI} !^/content\.php$ [NC]
    # https is off
    RewriteCond %{HTTPS} off
    # redirec to https site
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    

提交回复
热议问题