이전 목록 다음
채택완료

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

2016-04-18 (월) 10:40:07 6,705

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

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

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

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

 

 

답변 7개 / 댓글 5개

채택된 답변
+20 포인트
2016-04-18 (월) 11:40:04

네~! blank.html 페이지는 코드가 없는 페이지 입니다.

답변에 대한 댓글 1개

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

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

배워갑니다 ^^

2016-04-18 (월) 13:39:18

제가 테스트 사이트에 그대로 코딩했으니 확인해 보세요.

http://wonoong.dothome.co.kr 

답변을 채택해 주셔서 감사드립니다~! (_ _)

2016-04-18 (월) 11:48:19

index.html 과 같은 폴더라면 경로를 그냥 "index.php" 로 하시면 됩니다.

답변에 대한 댓글 1개

<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..... 경로가 나와여 .. 머가 잘못된거죠 ??
2016-04-18 (월) 11:36:53

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

답변에 대한 댓글 2개

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>

이렇게 하는거 맞나요 ?
2016-04-18 (월) 10:53:08

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

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

답변에 대한 댓글 1개

index.html만들어서 이걸 넣는건가요 ??... 메인 페이지 파일 경로는 index.php 이구여 빈 페이지 경로라면 어떤거 말씀하시져 ?

대부분은 프레임을 나눠서 처리합니다. 

답변을 작성하려면 로그인이 필요합니다.