.htaccess 질문 정보
.htaccess 질문
본문
.htaccess 를 이용해
특정 페이지 들어 갔을때 다른페이지로 넘어가게 못할까요?
특정 페이지 들어 갔을때 다른페이지로 넘어가게 못할까요?
댓글 전체
htaccess 이용은 잘 모르겠구요..
다른 쉬운 방법..
head.sub.php 상단에 추가
특정게시판(또는 페이지)로 들어가면 다른 페이지로 이동시키기
if($board[bo_table] == "게시판명") // 게시판명을 이용
//if ($g4[title] == "페이지 타이틀명") // 페이지 타이틀을 이용 외..
goto_url("http://www.도메인.co.kr/");
//goto_url("$g4[path]/ooo/file.php");
다른 쉬운 방법..
head.sub.php 상단에 추가
특정게시판(또는 페이지)로 들어가면 다른 페이지로 이동시키기
if($board[bo_table] == "게시판명") // 게시판명을 이용
//if ($g4[title] == "페이지 타이틀명") // 페이지 타이틀을 이용 외..
goto_url("http://www.도메인.co.kr/");
//goto_url("$g4[path]/ooo/file.php");

// 자동 https:// 로 이동
if ($HTTP_HOST=="페이지") {
echo header('Location: https://terrorboy.pe.kr:60008/');
}else{
}
로 처리 해버렸습니다 ^^
if ($HTTP_HOST=="페이지") {
echo header('Location: https://terrorboy.pe.kr:60008/');
}else{
}
로 처리 해버렸습니다 ^^

간단히
if ($HTTP_HOST=="terrorboy.pe.kr") {
alert("이동합니다.", "https://terrorboy.pe.kr:60008/");
//echo header('Location: https://terrorboy.pe.kr:60008/');
}
로 바꿨습니다.
if ($HTTP_HOST=="terrorboy.pe.kr") {
alert("이동합니다.", "https://terrorboy.pe.kr:60008/");
//echo header('Location: https://terrorboy.pe.kr:60008/');
}
로 바꿨습니다.

Redirect /test.php /test1.php

이건 asp함수 아닌가요?

.htaccess 요~

아.... asp랑 비슷해서 ㅋㅋ
if ($HTTP_HOST=="terrorboy.pe.kr" || $HTTP_HOST=="www.terrorboy.pe.kr") {
이렇게도...
이렇게도...

.htaccess 에서 www로 접속시 www 없는걸로 돌려주게 설정 되있거든요....
그래서 필요 없을듯^^
그래서 필요 없을듯^^