URL 포워딩 하는 방법 입니다.
보통 index.htm 에서 하부 디렉토리로 연결하거나 외부 주소로 연결할 때 이용됩니다.
1. 메타태그를 이용한 방법
<meta http-equiv="Refresh" content="0; URL=http://abc.co.kr">
-------> abc.co.kr 로 연결
<meta http-equiv="Refresh" content="0; URL=/tt/">
-------> /tt 폴더로 연결
2. 자바스크립트를 이용한 방법
<script>document.location="http://abc.co.kr";</script>
<script>document.location="/tt/";</script>
3. PHP 를 이용한 방법
<? header("Location:http://abc.co.kr"); ?>
<? header("Location:/tt/"); ?>
[출처] 특정 페이지로의 URL 포워딩하기 |작성자 블록
'etc' 카테고리의 다른 글
| ie toy 2.0 beta (0) | 2008/03/26 |
|---|---|
| 윈도우 CVS 설치 (0) | 2008/03/10 |
| 특정 페이지로의 URL 포워딩하기 (0) | 2008/03/10 |
| XP 터미널 서비스 여러명 사용 (1) | 2008/03/10 |
| Eclipse Plugin ratings (0) | 2008/03/06 |
| [펌] 프로그래밍 격언 (0) | 2008/03/04 |




댓글을 달아 주세요