Skip to content

echo2echo/Redirect-to-Https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Redirect-to-Https

Recent versions of Apache and Let's Encrypt redirect to https automatically making this script unnecessary. If Apache is not redirecting to https try this script.

This is code to redirect web page traffic from http to https ( secure web )

To reference this javascript file use the following in the head of your webpages

<script src="./redirectToHttps.js"></script>    

Then place the redirectToHttps.js file in the same directory as the file(s) with the script tag or adjust the src location.

About

javascript to redirect web page from http to https

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published