Created
March 23, 2018 04:54
-
-
Save nabettu/1c2727fc9f52753e9e91eb590d0cb769 to your computer and use it in GitHub Desktop.
HTTPSだったらHTTPにリダイレクトする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(location.protocol.match('https:')){ | |
location.replace(location.href.replace('https:','http:')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment