728x90
๋ฐ์ํ
if (window.location.protocol != "https:") {
window.location.href = "https:" + window.location.href.substring(window.location.protocol.length);
}
if (document.location.protocol == 'http:') {
document.location.href = document.location.href.replace('http:', 'https:');
}
์ถ์ฒ:
https://greendreamtrre.tistory.com/672
Javascript (์๋ฐ์คํฌ๋ฆฝํธ) HTTP ์ ์ ์ HTTPS๋ก ๋ฆฌ๋ค์ด๋ ํธ
๋ณดํต์ ํฐ์บฃ ์๋ฒ ์ค์ ๋ฑ์์ ์๋์ผ๋ก ๋ฆฌ๋ค์ด๋ ํธ ์ํค๋๋ก ํ์ง๋ง ๊ฐ ํ์ด์ง๋ง๋ค ์๋ฐ์คํฌ๋ฆฝํธ๋ก ์ฒ๋ฆฌํ๊ฑฐ๋ ์ถ๊ฐ ๊ฒ์ฆ์ ์์ผ์ผ์ค ์ ์๋ค. if (window.location.protocol != "https:") { window.location.hre
greendreamtrre.tistory.com
728x90
๋ฐ์ํ
'๐ฅ๏ธํ๋ก ํธ์๋ > HTML | CSS | JAVASCRIPT' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
CSS - ๋ฏธ๋์ด์ฟผ๋ฆฌ ํ์ธ ์ฌ์ดํธ(mediaqueriestest.com) (0) | 2023.08.28 |
---|---|
์๋ฐ์คํฌ๋ฆฝํธ - XPath ๋ค๋ฃจ๊ธฐ, ๋ฐ์์๋ ํ ์คํธ ์ฌ์ดํธ ํต ๋ง๋ค๊ธฐ (0) | 2023.06.23 |
์๋ฐ์คํฌ๋ฆฝํธ - ํ์ฌ script ํ๊ทธ ์ญ์ ํ๊ธฐ (0) | 2023.04.04 |
์๋ฐ์คํฌ๋ฆฝํธ - SMS ๋ฌธ์ ๋ณด๋ด๊ธฐ (0) | 2023.03.02 |
CSS - :before๋ฅผ ์ด์ฉํ ์ฑํ ์ฐฝ ๋งํ์ ๊ผฌ๋ฆฌ ๋ง๋ค๊ธฐ (0) | 2023.02.05 |