도메인에 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년 전 | 4436 | ||
| 2394 | 1년 전 | 5052 | ||
| 2393 |
|
1년 전 | 1705 | |
| 2392 |
|
1년 전 | 1364 | |
| 2391 |
|
1년 전 | 1145 | |
| 2390 |
|
1년 전 | 1199 | |
| 2389 | 1년 전 | 1781 | ||
| 2388 | 1년 전 | 1332 | ||
| 2387 | 1년 전 | 1314 | ||
| 2386 |
투명한열정
|
1년 전 | 3077 | |
| 2385 |
|
1년 전 | 2349 | |
| 2384 | 1년 전 | 1670 | ||
| 2383 | 1년 전 | 1807 | ||
| 2382 | 1년 전 | 1458 | ||
| 2381 |
|
1년 전 | 1875 | |
| 2380 | 1년 전 | 1044 | ||
| 2379 | 1년 전 | 1386 | ||
| 2378 | 1년 전 | 919 | ||
| 2377 | 1년 전 | 3000 | ||
| 2376 | 1년 전 | 1566 | ||
| 2375 | 1년 전 | 1737 | ||
| 2374 |
네이비스택
|
1년 전 | 1119 | |
| 2373 | 1년 전 | 1551 | ||
| 2372 | 1년 전 | 1472 | ||
| 2371 |
goodman148
|
1년 전 | 2113 | |
| 2370 | 1년 전 | 1521 | ||
| 2369 |
|
1년 전 | 1036 | |
| 2368 | 1년 전 | 1838 | ||
| 2367 | 1년 전 | 1358 | ||
| 2366 |
|
1년 전 | 1215 | |
| 2365 | 1년 전 | 2146 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기