인트로 페이지 만들기 정보
인트로 페이지 만들기본문
인트로 페이지를 만들어 본 적이 없어서...
처음 만들면서 정리를 해 보았습니다.
잘못된 부분이 있으면 알려주시면 고맙겠습니다.
홈페이지에 접근할 때, 'index.php'보다 'index.html'을 먼저 읽는 모양입니다.
해서... 'index.php'와 같은 위치에 'index.html'파일을 만듭니다.
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>internationale</title>
</head>
<body>
<!-- 인트로 시작 { -->
<div style="z-index:1;position:relative;min-width:970px">
<div style="position:relative;margin:0 auto;padding:50px 0;width:970px;zoom:1;text-align:center">
<p><img src="index.gif" style="max-width:100%; height:auto"></p>
<h1>Invicem benedicimus corde sincero.</h1>
<h2><a href="index.php">Go Home</a></h2>
</div>
</div>
<!-- <meta http-equiv='refresh' content='5; url=index.php'> -->
<!-- } 인트로 끝 -->
</body>
</html>
만들어 본 예입니다.
몇초 후에 자동으로 'index.php'로 넘어가게 하려면, 아랫쪽 meta http-equiv='refresh'... 의 주석을 풀면 됩니다.
그런데 '로고'를 누르거나 곳곳에 있는 '메인으로 돌아가기'를 누르면 'index.html'로 돌아가버립니다.
그것을 방지하기 위하여 여러곳을 수정해줍니다.
<a href="<?php echo G5_URL ?>">
또는
<a href="<?php echo G5_URL ?>/">
를 찾아서 아래와 같이 수정합니다.
관리자모드
adm/admin.head.php
<li><a href="<?php echo G5_URL ?>/index.php">커뮤니티</a></li>
PC
theme/사용테마/head.php
<a href="<?php echo G5_URL ?>/index.php">
theme/사용테마/skin/member/basic/login.skin.php
<a href="<?php echo G5_URL ?>/index.php">메인으로 돌아가기</a>
theme/사용테마/skin/member/basic/member_confirm.skin.php
<a href="<?php echo G5_URL ?>/index.php">메인으로 돌아가기</a>
theme/사용테마/skin/member/basic/register_result.skin.php
<a href="<?php echo G5_URL ?>/index.php" class="btn02">메인으로</a>
Mobile
theme/사용테마/mobile/head.php
<a href="<?php echo G5_URL ?>/index.php.php">
theme/사용테마/mobile/skin/member/basic/login.skin.php
<a href="<?php echo G5_URL ?>/index.php">메인으로 돌아가기</a>
theme/사용테마/mobile/skin/member/basic/member_confirm.skin.php
<a href="<?php echo G5_URL ?>/index.php">메인으로 돌아가기</a>
theme/사용테마/mobile/skin/member/basic/register_result.skin.php
<a href="<?php echo G5_URL ?>/index.php" class="btn02">메인으로</a>
Shop
theme/사용테마/shop/shop.head.php
<li><a href="<?php echo G5_URL; ?>/index.php">커뮤니티</a></li>
로그인 했을 때와 안 했을 때...
PC일 때와 Mobile일 때를 구분하는 방법은 고수님들께...
!-->3
댓글 12개
index.php 를 index.html 앞에 두시면 index.php 를 먼저 읽습니다.
저는 일반 웹호스팅이어서 그런 설정을 할 수 없나봐요.
다만 변경해야 하는 곳이 너무 많네요. 먼가 좋은 방법 없을까요?