도메인 뒤에 경로를 숨길려면???

도메인 뒤에 경로를 숨길려면???

QA

도메인 뒤에 경로를 숨길려면???

본문

도메인 경로 숨길려면 어케 해야되나요 ??

 

asdf.com/bbs/board.php?bo_table=aaa

여기서 /bbs/board.php?bo_table=aaa

이것을 숨기고싶습니다 ..

 

 

이 질문에 댓글 쓰기 :

답변 7

네~! blank.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>

이렇게 햇는데 로그인 부분이랑 주소 그냥 나와요.. ㅠㅠ

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="index.php">
<frame name="bottom" scrolling="no" marginwidth="0" marginheight="0" src="blank.html">
<noframes>
<body></body>
</noframes>
</frameset>
</html>

넹 햇는데 .. 로그인 부분 은 그냥 뒤에  /bbs..... 경로가 나와여 .. 머가 잘못된거죠 ??

제가 운영하는 사이트에서는 아래 코드로 프레임을 나누어 처리하였습니다.

 

<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>

<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>

이렇게 하는거 맞나요 ?

답변을 작성하시기 전에 로그인 해주세요.
전체 34
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT