主機(jī)大師apache 安裝完ssl證書(shū)不自動(dòng)跳轉(zhuǎn),http https 都能單獨(dú)打開(kāi)

2047182633 2022-7-18 934

最新回復(fù) (1)
  • hws 2022-7-18
    引用 2
    您好,軟件并沒(méi)有幫你做強(qiáng)制跳轉(zhuǎn),需要你自己來(lái)設(shè)置。
    如果可以,請(qǐng)?jiān)诰W(wǎng)站根目錄下創(chuàng)建一個(gè)文件.htaccess
    內(nèi)容如下:
    RewriteEngine  On
    RewriteCond  %{SERVER_PORT}  80
    RewriteRule  ^(.*)$  https://%{HTTP_HOST}/$1  [R,L]

    請(qǐng)嘗試。
返回
發(fā)新帖