시작페이지 index를 어떻게 바꾸나요?
보통홈페이지 주소를 치면 자동적으로 index.html(php)로 가는 걸로 알고 있습니다.
근데 저는 시작페이지가 http://www.funhanja.com/board/bbs/board.php?bo_table=test
저렇게 되어 있습니다.
http://www.funhanja.com/ 이라고 검색할 때
http://www.funhanja.com/index.html이 아니라
http://www.funhanja.com/board/bbs/board.php?bo_table=test로 가려면 어떻게 해야하나요?
시작페이지가 html이라면 이름만 index로 바꿔주면 되는데 게시물 형식이라 난감하네요.
근데 저는 시작페이지가 http://www.funhanja.com/board/bbs/board.php?bo_table=test
저렇게 되어 있습니다.
http://www.funhanja.com/ 이라고 검색할 때
http://www.funhanja.com/index.html이 아니라
http://www.funhanja.com/board/bbs/board.php?bo_table=test로 가려면 어떻게 해야하나요?
시작페이지가 html이라면 이름만 index로 바꿔주면 되는데 게시물 형식이라 난감하네요.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 7개
goto_url("http://www.funhanja.com/board/bbs/board.php?bo_table=test");
<?
define("_INDEX_",true);
goto_url("http://www.funhanja.com/board/bbs/board.php?bo_table=test");
?>
이렇게 만들었는데
Fatal error: Call to undefined function goto_url() in /home/obag47/www/index.php on line 4
에러 메세지가 뜨네용~
ftp를 접속해보면 index.php가 제일 먼저 있고 그누보드 폴더가 있습니다. 그누보드 안에 있는 index를 수정하는 게 아니라 ftp를 접속했을 때 처음 노출되는 index.php를 바꾸려고 합니당~
들어가보시면 이런 에러가 뜹니다.
http://www.obag.co.kr/
그럼 html 바로밑 index 최상단에
<script language="JavaScript">
document.location="http://www.funhanja.com/board/bbs/board.php?bo_table=test";
</script>
요래해보셔요 ㅎㅎ
해결했습니다.
index.php 파일의 내용을 다 지우고 저렇게 넣으니 되네용~
<?
echo "<script>
window.location.replace('http://www.funhanja.com/board/bbs/board.php?bo_table=test');
</script>";
?>