Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js https redirect

if (location.protocol !== 'https:') {
    location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
 
PREVIOUS NEXT
Tagged: #js #https #redirect
ADD COMMENT
Topic
Name
3+3 =