url 확장자 없애기
본문
최상위 .htaccess 에 값을 추가했습니다.
PHP_FLAG register_globals ON
PHP_VALUE mysql.default_charset UTF8
#### 그누보드5 rewrite BEGIN #####
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule ^(.*\.html)$ $1 [L]
RewriteRule ^(.*\.htm)$ $1 [L]
RewriteRule ^(.*\.htc)$ $1 [L]
RewriteRule ^(.*\.txt)$ $1 [L]
RewriteRule ^(.*\.css)$ $1 [L]
RewriteRule ^(.*\.js)$ $1 [L]
RewriteRule ^(.*\.jpeg)$ $1 [L]
RewriteRule ^(.*\.jpg)$ $1 [L]
RewriteRule ^(.*\.gif)$ $1 [L]
RewriteRule ^(.*\.png)$ $1 [L]
RewriteRule ^(.*\.swf)$ $1 [L]
RewriteRule ^(.*\.flv)$ $1 [L]
RewriteRule ^(.*\.xml)$ $1 [L]
RewriteRule ^(.*\.ico)$ $1 [L]
RewriteRule ^(.*\.bmp)$ $1 [L]
RewriteRule ^(.*\.wmv)$ $1 [L]
RewriteRule ^(.*\.avi)$ $1 [L]
RewriteRule ^(.*\.asf)$ $1 [L]
RewriteRule ^(.*\.cab)$ $1 [L]
RewriteRule ^(.*\.exe)$ $1 [L]
RewriteRule ^(.*\.ini)$ $1 [L]
RewriteRule ^(.*\.xap)$ $1 [L]
RewriteRule ^(.*\.xaml)$ $1 [L]
RewriteRule ^(.*\.doc)$ $1 [L]
RewriteRule ^(.*\.docx)$ $1 [L]
RewriteRule ^(.*\.xls)$ $1 [L]
RewriteRule ^(.*\.xlsx)$ $1 [L]
RewriteRule ^(.*\.ppt)$ $1 [L]
RewriteRule ^(.*\.pptx)$ $1 [L]
RewriteRule ^$ core/ [L]
RewriteRule (.*) core/$1 [L]
RewriteRule ^shop/list-([0-9a-z]+)$ shop/list.php?ca_id=$1&rewrite=1 [QSA,L]
RewriteRule ^shop/type-([0-9a-z]+)$ shop/listtype.php?type=$1&rewrite=1 [QSA,L]
RewriteRule ^shop/([0-9a-zA-Z_\-]+)$ shop/item.php?it_id=$1&rewrite=1 [QSA,L]
RewriteRule ^shop/([^/]+)/$ shop/item.php?it_seo_title=$1&rewrite=1 [QSA,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 #####
되지 않는 이유가 뭘까요?
php, html 등을 없애기 위함입니다.
!-->
답변을 작성하시기 전에 로그인 해주세요.