2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 07-02-19 13:54
[소스변경] 블로그단축주소를 위한 소스변경
 글쓴이 : Morning (124.♡.110.52)
조회 : 4,485  
블로그의 주소를 단축시키기 위해서,
아래처럼 소스를 변경함
중간에 /blog/란 부분을 없애줌

-----------------------------------------------------------------------

1. gblog.config.php 파일의 $gb4['blog_url']을 다음과 같이 수정합니다.

 
 
기본
$gb4['blog_url'] = $gb4['path'].'/'.$gb4['blog'];
 
변경후
$gb4['blog_url'] = $gb4['path'];
 
 
2. 그누보드가 설치된 루트 디렉토리에 다음과 같은 내용의 .htaccess 파일을 생성해줍니다.
 
 
멀티모드의 경우
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_]+)$ blog/index\.php\?mb_id=$1
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)$ blog/index\.php\?mb_id=$1&id=$2
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/([0-9]+)$ blog/index\.php\?mb_id=$1&yyyy=$2&mm=$3&dd=$4
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)$ blog/index\.php\?mb_id=$1&yyyy=$2&mm=$3
RewriteRule ^([a-zA-Z0-9_]+)/tag/([^\/]*)$ blog/index\.php\?mb_id=$1&tag=$2
RewriteRule ^([a-zA-Z0-9_]+)/category/([^\/]*)$ blog/index\.php\?mb_id=$1&cate=$2
RewriteRule ^([a-zA-Z0-9_]+)/search/([^\/]*)$ blog/index\.php\?mb_id=$1&search=$2
RewriteRule ^([a-zA-Z0-9_]+)/rss$ rss\.php\?mb_id=$1
RewriteRule ^([a-zA-Z0-9_]+)/tags$ tags\.php\?mb_id=$1
RewriteRule ^([a-zA-Z0-9_]+)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&page=$2
RewriteRule ^([a-zA-Z0-9_]+)/tag/([^\/]*)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&tag=$2&page=$3
RewriteRule ^([a-zA-Z0-9_]+)/category/([^\/]*)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&cate=$2&page=$3
RewriteRule ^([a-zA-Z0-9_]+)/search/([^\/]*)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&search=$2&page=$3
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&id=$2&page=$3
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/([0-9]+)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&yyyy=$2&mm=$3&dd=$4&page=$5
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/page/([0-9]+)$ blog/index\.php\?mb_id=$1&yyyy=$2&mm=$3&page=$4
RewriteRule ^([a-zA-Z0-9_]+)/preview/(.+)$ blog/index\.php\?mb_id=$1&preview=$2
</IfModule>
 
 
싱글모드의 경우
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ blog/index\.php
RewriteRule ^([0-9]+)$ blog/index\.php\?id=$1
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)$ blog/index\.php\?yyyy=$1&mm=$2&dd=$3
RewriteRule ^([0-9]+)/([0-9]+)$ blog/index\.php\?yyyy=$1&mm=$2
RewriteRule ^tag/([^\/]*)$ blog/index\.php\?tag=$1
RewriteRule ^category/([^\/]*)$ blog/index\.php\?cate=$1
RewriteRule ^search/([^\/]*)$ blog/index\.php\?search=$1
RewriteRule ^rss$ rss\.php
RewriteRule ^tags$ tags\.php
RewriteRule ^page/([0-9]+)$ blog/index\.php\?page=$1
RewriteRule ^tag/([^\/]*)/page/([0-9]+)$ blog/index\.php\?tag=$1&page=$2
RewriteRule ^category/([^\/]*)/page/([0-9]+)$ blog/index\.php\?cate=$1&page=$2
RewriteRule ^search/([^\/]*)/page/([0-9]+)$ blog/index\.php\?search=$1&page=$2
RewriteRule ^([0-9]+)/page/([0-9]+)$ blog/index\.php\?id=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/page/([0-9]+)$ blog/index\.php\?yyyy=$1&mm=$2&dd=$3&page=$4
RewriteRule ^([0-9]+)/([0-9]+)/page/([0-9]+)$ blog/index\.php\?yyyy=$1&mm=$2&page=$3
RewriteRule ^preview/(.+)$ blog/index\.php\?preview=$1
</IfModule>
 
 
○ 생성후 디렉토리 및 파일 구조가 다음과 같이 됩니다.
 
bbs/
blog/
extend/
lib/
....
gblog.config.php
gblog.index.php
...
.htaccess
head.sub.php
[이 게시물은 morning님에 의해 2009-11-22 17:49:48 홈관리자료실에서 이동 됨]
[이 게시물은 morning님에 의해 2009-11-22 17:56:43 알림판에서 이동 됨]
주님과 함께 모닝커피를

 
 

Total 167
번호 제   목 글쓴이 날짜 조회
107 [그누소스] 숫자변경 Morning 02-22 3356
106 [소스변경] 온라인문의 (1) Morning 02-22 6691
105 [소스문법] 일정한 부분을 다른 것으로 치환하는 방법 (9) Morning 02-22 6530
104 [소스문법] div, table (2) Morning 01-20 5520
103 [소스변경] 블로그단축주소를 위한 소스변경 Morning 02-19 4486
102 [그누소스] 네비게이션 (1) Morning 02-17 4548
101 [그누소스] 홈관리메뉴 (1) Morning 02-16 3348
100 [소스변경] 펼침카테고리 사용시 Morning 02-15 3893
99 [그누스킨] morning_webzin3 Morning 02-13 4001
98 [그누소스] 블로그 최신글 Morning 02-12 4265
97 [소스변경] 까페를 위한 소스변경사항 Morning 02-07 4184
96 [홈준비] 웹진과제 Morning 02-06 5148
95 [소스문법] dq_thumb_engine2를 쓴 최신글스킨에서 썸네일 안… (1) Morning 02-04 5552
94 [그누소스] 생성한 썸네일을 스킨에서 몽땅 삭제하기 Morning 02-04 3456
93 [그누소스] 썸네일 생성- 않으면서 빠르게 출력 (2) Morning 02-04 3717
 1  2  3  4  5  6  7  8  9  10    

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God