웹프로그래밍

Global It Leader!!


그누보드


 
 

그누보드 짧은 주소 설정하기

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 1,305회 작성일 22-03-22 20:28

본문

Apache 서버설정

 

Apache 서버의 경우 rewrite module 이 활성화 되어 있어야 합니다.

 

rewrite module 이 활성화 되어 있다면 .htaccess 파일을 이용하여 주소 문자열을 짧게 변경하거나 아파치 설정을 용이하게 변경할수 있습니다.

 

rewrite module 이 활성화되어 있다면 짧은 주소 기능을 사용할수 있습니다.

그누보드5 설치된 폴더에 .htaccess 생성이 필요하며 설치된 폴더에 파일 생성 권한이 있는 경우 첫번째 이미지처럼 뜨며, 파일 생성 권한이 없는 두번째 이미지처럼 빨간색 글자가 뜹니다.


1. .htaccess 예제를 보고 만들어 루트 폴더에 업로드한다.


#### 그누보드5 rewrite BEGIN #####

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^ - [L]

RewriteRule ^content/([0-9a-zA-Z_]+)$  bbs/content.php?co_id=$1&rewrite=1  [QSA,L]

RewriteRule ^content/([^/]+)/$  bbs/content.php?co_seo_title=$1&rewrite=1      [QSA,L]

RewriteRule ^rss/([0-9a-zA-Z_]+)$  bbs/rss.php?bo_table=$1        [QSA,L]

RewriteRule ^([0-9a-zA-Z_]+)$  bbs/board.php?bo_table=$1&rewrite=1      [QSA,L]

RewriteRule ^([0-9a-zA-Z_]+)/([^/]+)/$ bbs/board.php?bo_table=$1&wr_seo_title=$2&rewrite=1      [QSA,L]

RewriteRule ^([0-9a-zA-Z_]+)/write$  bbs/write.php?bo_table=$1&rewrite=1    [QSA,L]

RewriteRule ^([0-9a-zA-Z_]+)/([0-9]+)$  bbs/board.php?bo_table=$1&wr_id=$2&rewrite=1  [QSA,L]

</IfModule>

#### 그누보드5 rewrite END #####


2. 그누보드 환경설정에 들어가 짧은 주소 형식을 선택한다.

67cb8a3e9a60c6b7642a7c9a09f0e993_1647948504_41.png
 

댓글목록

등록된 댓글이 없습니다.

전체 49
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1306 03-22
48 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 893 03-22
47 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3046 08-09
46 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1469 07-22
45 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2828 07-16
44 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1654 06-28
43 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1516 06-20
42 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1938 04-06
41 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2210 02-07
40 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2198 02-03
39 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1969 01-28
38 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2431 11-06
37 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2192 11-01
36 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2523 02-23
35 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2493 10-21
34 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2546 10-21
33 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2841 10-15
32 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2480 06-14
31 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3254 06-14
30 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3973 08-08