After some digging I found this which works, (though I do not know if it will with nice URLS)
-
function goElseWhere()
-
{
-
var url = document.URL;
-
-
if (url.indexOf("https")==-1)
-
{
-
//alert('den einai https');
-
-
}
-
else
-
{
-
//alert('einai https');
-
url=url.replace(/https/i,"http")
-
window.location = url;
-
-
}
-
-
}
-
goElseWhere();
-
Note that the script above enforce http if the user types https