Apache
http -> https로 무조건 접속
씨엔아이소프트
2022. 1. 18. 07:28
반응형
html , php 소스 수정시
<script type="text/javascript">
if (document.location.protocol == 'http:') {
document.location.href = document.location.href.replace('http:', 'https:');
}
</script>
apache httpd.conf 수정시
RewriteEngine on
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^(.*)$ https://megaidc.net$1 [L]
반응형