From bd7cc14f7544f1180be788550522f3b56034d175 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 30 Mar 2020 12:27:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=81=EC=B9=B4=ED=8A=B8=205.4=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=20=EC=83=81=ED=92=88=20=EC=A7=A7=EC=9D=80=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=20=EC=9E=98=EB=AA=BB=EB=90=9C=20rewrite=20=EC=A0=95?= =?UTF-8?q?=EA=B7=9C=EC=8B=9D=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.uri.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shop.uri.lib.php b/lib/shop.uri.lib.php index e22f50bec..41409d18a 100644 --- a/lib/shop.uri.lib.php +++ b/lib/shop.uri.lib.php @@ -156,7 +156,7 @@ function add_shop_nginx_conf_rules($rules, $get_path_url, $base_path, $return_st $add_rules[] = "rewrite ^{$base_path}shop/list-([0-9a-z]+)$ {$base_path}".G5_SHOP_DIR."/list.php?ca_id=$1&rewrite=1 break;"; $add_rules[] = "rewrite ^{$base_path}shop/type-([0-9a-z]+)$ {$base_path}".G5_SHOP_DIR."/listtype.php?type=$1&rewrite=1 break;"; - $add_rules[] = "rewrite ^{$base_path}shop/([0-9a-zA-Z_]+)$ {$base_path}".G5_SHOP_DIR."/item.php?it_id=$1&rewrite=1 break;"; + $add_rules[] = "rewrite ^{$base_path}shop/([0-9a-zA-Z_\-]+)$ {$base_path}".G5_SHOP_DIR."/item.php?it_id=$1&rewrite=1 break;"; $add_rules[] = "rewrite ^{$base_path}shop/([^/]+)/$ {$base_path}".G5_SHOP_DIR."/item.php?it_seo_title=$1&rewrite=1 break;"; return implode("\n", $add_rules).$rules; @@ -169,7 +169,7 @@ function add_shop_mod_rewrite_rules($rules, $get_path_url, $base_path, $return_s $add_rules[] = 'RewriteRule ^shop/list-([0-9a-z]+)$ '.G5_SHOP_DIR.'/list.php?ca_id=$1&rewrite=1 [QSA,L]'; $add_rules[] = 'RewriteRule ^shop/type-([0-9a-z]+)$ '.G5_SHOP_DIR.'/listtype.php?type=$1&rewrite=1 [QSA,L]'; - $add_rules[] = 'RewriteRule ^shop/([0-9a-zA-Z_]+)$ '.G5_SHOP_DIR.'/item.php?it_id=$1&rewrite=1 [QSA,L]'; + $add_rules[] = 'RewriteRule ^shop/([0-9a-zA-Z_\-]+)$ '.G5_SHOP_DIR.'/item.php?it_id=$1&rewrite=1 [QSA,L]'; $add_rules[] = 'RewriteRule ^shop/([^/]+)/$ '.G5_SHOP_DIR.'/item.php?it_seo_title=$1&rewrite=1 [QSA,L]'; return implode("\n", $add_rules).$rules;