도메인 뒤에 경로를 숨길려면???
본문
도메인 경로 숨길려면 어케 해야되나요 ??
asdf.com/bbs/board.php?bo_table=aaa
여기서 /bbs/board.php?bo_table=aaa
이것을 숨기고싶습니다 ..
답변 7
네~! blank.html 페이지는 코드가 없는 페이지 입니다.
index.html 과 같은 폴더라면 경로를 그냥 "index.php" 로 하시면 됩니다.
대부분은 프레임을 나눠서 처리합니다.
제가 운영하는 사이트에서는 아래 코드로 프레임을 나누어 처리하였습니다.
<html>
<head>
<title>사이트 제목</title>
</head>
<frameset rows="1*, 0" cols="1*" border="0">
<frame name="top" scrolling="auto" marginwidth="0" marginheight="0" src="메인페이지 파일 경로">
<frame name="bottom" scrolling="no" marginwidth="0" marginheight="0" src="빈 페이지 경로">
<noframes>
<body></body>
</noframes>
</frameset>
</html>
보통 index.html 파일명으로 만들어서 알려드린 코드로 작성하여 저장합니다.
빈페이지는 blank.html 파일명으로 만들어서 코드 없이 저장합니다.
같은 최상단 폴더에 메인페이지가 index.php 파일일 경우
index.html 페이지의 코드는 아래와 같습니다.
<html>
<head>
<title>사이트 제목</title>
</head>
<frameset rows="1*, 0" cols="1*" border="0">
<frame name="top" scrolling="auto" marginwidth="0" marginheight="0" src="index.php">
<frame name="bottom" scrolling="no" marginwidth="0" marginheight="0" src="blank.html">
<noframes>
<body></body>
</noframes>
</frameset>
</html>
배워갑니다 ^^