找回密碼
 註冊
搜索
查看: 1891|回復: 0

[教學] Ckeditor Ckfinder https 無法瀏覽伺服器及上傳問題

[複製鏈接]
發表於 2022-3-13 21:32:00 | 顯示全部樓層 |閱讀模式
 
Push to Facebook
今日把http轉成https


到後台編輯時發現無法瀏覽伺服器及上傳圖片


Ckeditor Ckfinder https

Ckeditor Ckfinder https



到ckeditor目錄下,找到config.js
  1. baseurl = 'http://'+window.location.hostname;
複製代碼
改成
  1. baseurl = 'https://'+window.location.hostname;
複製代碼
到ckfinder目錄下,找到config.php
  1. $baseUrl = 'http://'.$_SERVER['HTTP_HOST'].'/attachments/';
複製代碼
改成
  1. $baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/attachments/';
複製代碼


就能正常使用了


文章出處
 
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|小黑屋|TShopping

GMT+8, 2025-4-30 19:26 , Processed in 0.026004 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表