|
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
2019-08-19 (월) 17:40:13
질문 내용이 너무 모호하네요.
php의 경우 $content = str_replace("http://" , "https://", $content);
로 변환할 수 있습니다
2019-08-19 (월) 17:42:45
tail.sub.php에 넣어보세요.
<script>
$(document).ready(function(){
$("a").each(function (i,e) {
var $a = $(this);
if($a[0].protocol=='http:'){
var href = 'https://'+$a[0].hostname;
$a.attr('href',href);
}
});
});
</script>
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.