if (window.location.protocol != "https:") {
window.location.protocol = "https:";
window.location.reload();
}

bunu htacces e mı eklıyoruz yanı hocam aynen bana http yi tespit edip https yapacak sey lazım https si de var cunku dıger sıtenın bu degıl sanırım bısey degısmedı usttekini http yapıp alttakı mı https olcak acaba