Merhaba arkadaşlar,

sitede bulunan tüm http linkleri otomatik https ye çeviren htaccess kodu lazım. Daha önce bir sitem için php bir siteydi tasarımcım yapmıştı. htaccesle mı yaptı siteye mı ekledı naptı bılmıyorum ama bı kodla otomatık sıtedekı veri çekimi yapılan yerler dahi https ye dönüyordu bilen var mı bu kodu acaba ? Diğer türlü httmp yi https ye çeviren htacces kodu her yerde var bılıyorum aam o ıcındekılerı cevırmıyor sade sıtenın lınklerını cevırıyor

ihtiyacı olan arkadaşlar için kod bu

<script>
function showProtocall() {
if (window.location.protocol != "https") {
window.location = "https://" + window.location.href.substring(window.location.protocol.length, window.location.href.length);
window.location.reload();
}
}
showProtocall();
</script>