도메인에 www를 강제삽입하기
head안에 추가해 주시면 도메인에 www를 강제로 삽입해줍니다.
<script language="Javascript" type="text/javascript">
<!--
var host = location.host.toLowerCase();
var currentAddress = location.href;
if (host.indexOf("www")== -1)
{
currentAddress = currentAddress.replace("//","//www.");
location.href = currentAddress;
}
//-->
</script>
http 일반 홈페이지 강제 https로 접속하기
<script language="Javascript" type="text/javascript">
<!--
var host = location.host.toLowerCase();
var currentAddress = location.href;
if (host.indexOf("www")== -1)
{
currentAddress = currentAddress.replace("//http","//https.");
location.href = currentAddress;
}
//-->
</script>
댓글 7개
리디렉션을 스크립트로 처리 도가능하군요 좋은팁감사합니다. 나중에 한번써먹어야 겟습니다. 감사합니다.
@웅프 도움이 되셨기를^^
리디렉션을 스크립트로 처리 도가능하군요 좋은팁감사합니다. 나중에 한번써먹어야 겟습니다. 감사합니다.
@라온헤윰 도움이 되셨기를 바랍니다^^
302 설정하면 간편할텐데 ..
감사합니다.
@희희아빠 도움이 되셨기를^^
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4426 | ||
| 2274 | 2년 전 | 2066 | ||
| 2273 |
|
2년 전 | 1487 | |
| 2272 | 2년 전 | 2469 | ||
| 2271 | 2년 전 | 2070 | ||
| 2270 |
|
2년 전 | 2090 | |
| 2269 |
|
2년 전 | 1891 | |
| 2268 | 2년 전 | 3850 | ||
| 2267 | 2년 전 | 2899 | ||
| 2266 |
|
2년 전 | 2123 | |
| 2265 | 2년 전 | 1642 | ||
| 2264 | 2년 전 | 2123 | ||
| 2263 | 2년 전 | 1992 | ||
| 2262 | 2년 전 | 1541 | ||
| 2261 |
|
2년 전 | 1452 | |
| 2260 | 2년 전 | 2441 | ||
| 2259 |
welcome
|
2년 전 | 1778 | |
| 2258 |
welcome
|
2년 전 | 1307 | |
| 2257 | 2년 전 | 3056 | ||
| 2256 | 2년 전 | 1317 | ||
| 2255 |
|
2년 전 | 1825 | |
| 2254 | 2년 전 | 1797 | ||
| 2253 |
welcome
|
2년 전 | 1571 | |
| 2252 |
welcome
|
2년 전 | 1342 | |
| 2251 | 2년 전 | 2396 | ||
| 2250 | 2년 전 | 2032 | ||
| 2249 | 2년 전 | 1818 | ||
| 2248 | 2년 전 | 1630 | ||
| 2247 | 2년 전 | 2055 | ||
| 2246 | 2년 전 | 2466 | ||
| 2245 | 2년 전 | 1918 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기