Ammar Alsory @Ammar_Alsory

نقاط السمعة 35
تاريخ التسجيل 27/08/2019
آخر تواجد 7 أيام

var myurl ="https :// io..hsoub..com";

if( (myurl.substring(0,5)=="https") && (location.protocol == "http :") ){

//redirect to https as @ Khaled Html 's example

}else if( (myurl.substring(0,4)=="http") && (location.protocol == "https :") ){

//redirect to http

}