아래 자바스크립트 소스를 head.sub.php 파일의 <!doctype html> 위에 적용해서 사용해 보세요....^^
[code]
<script type="text/javascript">
//<![CDATA[
var address = location.host.toLowerCase();
if (address.indexOf("www") == -1)
{
location.href="http://www." + address;
}
if(typeof(parent.frames[0]) != "undefined") {
top.location.href = "http://www.$g5['url']";
}
//]]>
</script>
[/code]
HSTS 를 사용하지 않는 서버에서는 내용중에 http를 https 로 바꿔서 사용 하세요....^^
댓글 9개
게시글 목록
| 번호 | 제목 |
|---|---|
| 24318 | |
| 24317 | |
| 24315 | |
| 24309 | |
| 24294 | |
| 24293 | |
| 24277 | |
| 24262 | |
| 24260 | |
| 24253 | |
| 24251 | |
| 24236 | |
| 24233 | |
| 24228 | |
| 24226 | |
| 24221 | |
| 24214 | |
| 24203 | |
| 24201 | |
| 24199 | |
| 24196 | |
| 24195 | |
| 24194 | |
| 24192 | |
| 24191 | |
| 24187 | |
| 24185 | |
| 24183 | |
| 24172 | |
| 24168 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기