주소 꼬리 없애기
간단한 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개
daNy™
20년 전
아~ 감사합니다.
아주 깔끔하게 잘 되네요~ ^^
아주 깔끔하게 잘 되네요~ ^^
20년 전
이건 굳이 g3나 g4만을 위한 소스가 아닙니다.
일단은 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의 이름을 바꿉니다 아무걸로나 하셔도 돼지만 전 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>
daNy™
20년 전
이 소스가 G4에서도 적용이 되는 건가요??
G4에서는 메인페이지가 index.php 이던데..
어떤식으로 해야하는지 자세하게 설명부탁드립니다. 이해가 잘 안되서요~ ^^;;;;
G4에서는 메인페이지가 index.php 이던데..
어떤식으로 해야하는지 자세하게 설명부탁드립니다. 이해가 잘 안되서요~ ^^;;;;
20년 전
추가 보충 설명 입니다. 아래 부분을 <html>바로 윗 부분에 넣으세요^^;;
<? //새로고침시 현재페이지로 다시 로딩
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
<? //새로고침시 현재페이지로 다시 로딩
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
20년 전
프래임을 나누어서 하나를 0으로 하고 다른 하나를 전체 보기로 해서 불러오는 기본적인 방법이죠..
저도 이 방법을 많이 사용하져..ㅋㅋ
암튼 멋진 소스 감사합니다..
저도 이 방법을 많이 사용하져..ㅋㅋ
암튼 멋진 소스 감사합니다..
20년 전
저방법은 속도가 약간 떨어져서 ........전 긴주소 보기 싫어도..
속도 때문에 ..
index.php
---------------------------------------------------
<?
header('location:./board/index.php');
?>
---------------------------------------------------
이렇게 사용합니다.
아 물론 그누폴더 자체을 루트에 넣어도되지만... 다른 그누하고 같이사용해서..
속도 때문에 ..
index.php
---------------------------------------------------
<?
header('location:./board/index.php');
?>
---------------------------------------------------
이렇게 사용합니다.
아 물론 그누폴더 자체을 루트에 넣어도되지만... 다른 그누하고 같이사용해서..
20년 전
와우.. 이런 방법들이 있었군요 -0-ㅋ
좋은 팁입니다. ^^;;
좋은 팁입니다. ^^;;
20년 전
고맙습니다 ^^
19년 전
^^스크랩해갑니다
18년 전
감사합니다
뮤즈그라피
18년 전
프레임을 위한 방법도 ..
17년 전
//location
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 89 |
g6man
|
20년 전 | 6187 | |
| 88 | 20년 전 | 6756 | ||
| 87 |
g6man
|
20년 전 | 4143 | |
| 86 | 20년 전 | 5257 | ||
| 85 | 20년 전 | 6136 | ||
| 84 | 20년 전 | 18355 | ||
| 83 | 20년 전 | 7370 | ||
| 82 | 20년 전 | 7456 | ||
| 81 | 20년 전 | 5365 | ||
| 80 | 20년 전 | 5051 | ||
| 79 |
황제.com
|
20년 전 | 4454 | |
| 78 | 20년 전 | 4044 | ||
| 77 | 20년 전 | 6018 | ||
| 76 |
innoX
|
20년 전 | 6066 | |
| 75 |
아꽈
|
20년 전 | 12603 | |
| 74 | 20년 전 | 3341 | ||
| 73 | 20년 전 | 7180 | ||
| 72 |
rosper
|
20년 전 | 3308 | |
| 71 |
rosper
|
20년 전 | 5248 | |
| 70 | 20년 전 | 3856 |
정보수정란의 이미지 변경 및 회원탈퇴 추가 [31]
아꽈
•
20년 전
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기