짧은 주소 질문 드립니다.
본문
<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 짧은주소.