짧은 주소 질문 드립니다. 채택완료
<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]</p>
<p></IfModule> 그누보드5 짧은주소.</p>
<p>
</p>
<p>RewriteEngine On</p>
<p>RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^admin/([^\/]+)/?$ admin/index.php?menu=$1 [L]</p>
<p>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]</p>
<p>RewriteRule ^process/([^\/]+)$ process/index.php?action=$1&%{QUERY_STRING} [L]
RewriteRule ^process/attachment/(.*)$ process/index.php?action=attachment&extras=$1%{QUERY_STRING} [L] 미니톡 짧은주소</p>
<p>
이걸 어떻게 합쳐야 할지 알려주실수 있나요?
답변 1개
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] 그누보드5 짧은주소.
답변에 대한 댓글 3개
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>[/code]
이렇게 넣어도 실패하네용 ㅠㅠ 그래도 감사합니다..
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>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
content, rss, addmin, api, process 인 게시판은 만드시면 제대로 동작하지 않을 수 있습니다.