Skip to content

JebBarbas/protocolredirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protocol Redirect

Use JS to change the URL protocol from http to https.


Build Status dependencies Status npm npm GitHub top language GitHub Repo stars

How To Use - Download

Just add a script tag in your head pointing the file, you can use the jsdelivr CDN.

<script src="https://cdn.jsdelivr.net/npm/protocolredirect@2.1.0"></script>

How To Use - Quick Start

When the file runs, it checks if you are in http, if not, It will redirect you to the same page, but in https. Don't worry, if you are in localhost or 127.0.0.1 this will not do anything.

About

Use JS to redirect your page from HTTP to HTTPS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published