주소 꼬리 없애기
간단한 html 코드로 주소 꼬리를 살짝 감출 수 있습니다.
예로
http://aaa.com/ 일경우 메뉴나 다른 링크를 클릭할경우 http://aaa.com/board/list.php 이런식으로 com/ 뒤에 꼬리가 붙습니다.
이것을 index파일의 소스를 살짝 적어줌으로써 뒤 꼬리를 감출 수 있습니다.
<html>
<head><title>홈페이지 만들기</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta name="description" content="홈페이지">
<meta name="keywords" content="홈페이지,공부방,프로그래밍,디자인">
</head>
<frameset rows="*,0" frameborder="0" border="0" framespacing="0">
<frame name="main" src="./gnu3/" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" framespacing="0">
<frame name="sound" src="music/music.php" marginwidth="0" marginheight="0" scrolling="no" noresize frameborder="0" framespacing="0">
</frameset>
<noframes>
<body bgcolor="#ffffff">
<p align=center>Not Found Document and FRAME not supporting....</p>
</body>
</noframes>
</html>
예로
http://aaa.com/ 일경우 메뉴나 다른 링크를 클릭할경우 http://aaa.com/board/list.php 이런식으로 com/ 뒤에 꼬리가 붙습니다.
이것을 index파일의 소스를 살짝 적어줌으로써 뒤 꼬리를 감출 수 있습니다.
<html>
<head><title>홈페이지 만들기</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta name="description" content="홈페이지">
<meta name="keywords" content="홈페이지,공부방,프로그래밍,디자인">
</head>
<frameset rows="*,0" frameborder="0" border="0" framespacing="0">
<frame name="main" src="./gnu3/" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" framespacing="0">
<frame name="sound" src="music/music.php" marginwidth="0" marginheight="0" scrolling="no" noresize frameborder="0" framespacing="0">
</frameset>
<noframes>
<body bgcolor="#ffffff">
<p align=center>Not Found Document and FRAME not supporting....</p>
</body>
</noframes>
</html>
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 12개
아주 깔끔하게 잘 되네요~ ^^
일단은 g4의 index.php의 이름을 바꿉니다 아무걸로나 하셔도 돼지만 전 index2.php로 했습니다.
그런다음에 빈파일을 하나 만드셔서 index.php로 저장합니다. 그곳에 아래 소스를 넣으세요.
그러면 바로 적용 될겁니다.
<? //새로고침시 현재페이지로 다시 로딩
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
<html>
<head>
<meta http-equiv=content-type content=text/html; charset=euc-kr>
<title>타이틀</title>
</head>
<frameset rows="*,0" cols="1*" border=0>
<frame src="./index2.php" frameborder=0 scrolling=auto>
</frameset>
</body>
</html>
G4에서는 메인페이지가 index.php 이던데..
어떤식으로 해야하는지 자세하게 설명부탁드립니다. 이해가 잘 안되서요~ ^^;;;;
<? //새로고침시 현재페이지로 다시 로딩
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
저도 이 방법을 많이 사용하져..ㅋㅋ
암튼 멋진 소스 감사합니다..
속도 때문에 ..
index.php
---------------------------------------------------
<?
header('location:./board/index.php');
?>
---------------------------------------------------
이렇게 사용합니다.
아 물론 그누폴더 자체을 루트에 넣어도되지만... 다른 그누하고 같이사용해서..
좋은 팁입니다. ^^;;