إعادة التوجيه من Http إلى Https للمدونات ذات النطاق المجاني
تم تغيير إعدادات HTTPS. يتمكن كل الزائرين الآن من عرض مدونتك عبر اتصال مشفر
التحويل من Http:// إلى Https:// بشكل تلقائي في المدونات ذات النطاق المجاني
إتباع الخطوات في هذا الموضوع
طريقة التحويل
توجه إلى بلوجر
إلى قالب
طريقة التحويل
توجه إلى بلوجر
إلى قالب
الضغط على تحرير HTML
ابحث عن الوسم
</head>
و اضف الكود التالي فوقه
<script type='text/javascript'>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "https://" + blog.substr(0, blog.indexOf("."));
ncr += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);}
</script>
<script type='text/javascript'>
function check_secure() {
var secssl = /^https/i;
var blog = document.location.hostname;
var slug = document.location.pathname;
var subs = window.location.search;
if (!window.location.origin.match(secssl)) {
window.location = "https://" + blog + slug + subs;
}
}
check_secure();
</script>





ليست هناك تعليقات: