짧은 주소 질문 드립니다.

짧은 주소 질문 드립니다.

QA

짧은 주소 질문 드립니다.

본문

<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 짧은주소.
 

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^admin/([^\/]+)/?$ admin/index.php?menu=$1 [L]
RewriteRule ^api/index.php$ api/index.php?%{QUERY_STRING} [L]
RewriteRule ^api/([^\/]+)$ api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
RewriteRule ^api/([^\/]+)/?([^\/]+)?$ api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
RewriteRule ^process/([^\/]+)$ process/index.php?action=$1&%{QUERY_STRING} [L]
RewriteRule ^process/attachment/(.*)$ process/index.php?action=attachment&extras=$1%{QUERY_STRING} [L] 미니톡 짧은주소

이걸 어떻게 합쳐야 할지 알려주실수 있나요?

이 질문에 댓글 쓰기 :

답변 1

<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 ^admin/([^\/]+)/?$ admin/index.php?menu=$1 [L]
RewriteRule ^api/index.php$ api/index.php?%{QUERY_STRING} [L]
RewriteRule ^api/([^\/]+)$ api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
RewriteRule ^api/([^\/]+)/?([^\/]+)?$ api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
RewriteRule ^process/([^\/]+)$ process/index.php?action=$1&%{QUERY_STRING} [L]
RewriteRule ^process/attachment/(.*)$ process/index.php?action=attachment&extras=$1%{QUERY_STRING} [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 짧은주소.

 


 

<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 ^grp/([0-9a-zA-Z_]+)$  bbs/group.php?gr_id=$1  [QSA,L]

RewriteRule ^minitalk/admin/([^\/]+)/?$ minitalk/admin/index.php?menu=$1 [L]
RewriteRule ^minitalk/api/index.php$ minitalk/api/index.php?%{QUERY_STRING} [L]
RewriteRule ^minitalk/api/([^\/]+)$ minitalk/api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
RewriteRule ^minitalk/api/([^\/]+)/?([^\/]+)?$ minitalk/api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
RewriteRule ^minitalk/process/([^\/]+)$ minitalk/process/index.php?action=$1&%{QUERY_STRING} [L]
RewriteRule ^minitalk/process/attachment/(.*)$ minitalk/process/index.php?action=attachment&extras=$1%{QUERY_STRING} [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>

이렇게 넣어도 실패하네용 ㅠㅠ 그래도 감사합니다..

<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 ^grp/([0-9a-zA-Z_]+)$  bbs/group.php?gr_id=$1  [QSA,L]

RewriteRule ^minitalk/admin/([^\/]+)/?$ minitalk/admin/index.php?menu=$1 [L]

한 개씩 넣어서 기능이 되는지 확인해 보세요.

RewriteRule ^minitalk/api/index.php$ minitalk/api/index.php?%{QUERY_STRING} [L]
이건 같은 주소 아닌가요?

RewriteRule ^minitalk/api/([^\/]+)$ minitalk/api/index.php?api=$1&idx=$2&%{QUERY_STRING} [L]
이것도 같은 주소 같네요.

RewriteRule ^minitalk/process/([^\/]+)$ minitalk/process/index.php?action=$1&%{QUERY_STRING} [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>

답변을 작성하시기 전에 로그인 해주세요.
전체 6
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT