Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache htaccess url重写删除url中的逗号_Apache_.htaccess_Mod Rewrite_Url Rewriting - Fatal编程技术网

Apache htaccess url重写删除url中的逗号

Apache htaccess url重写删除url中的逗号,apache,.htaccess,mod-rewrite,url-rewriting,Apache,.htaccess,Mod Rewrite,Url Rewriting,我正在尝试清理我的url的外观,其中product_name参数包含一个逗号的url显示在url中,如果有人知道怎么做,我想从url中删除它 RewriteCond %{THE_REQUEST} /product\.php\?product_id=([^&]+)&product_name=([^\s&]+) [NC] RewriteRule ^ /product/%1/%2? [NE,L,R] RewriteRule ^product/([0-9]+)/(.

我正在尝试清理我的url的外观,其中product_name参数包含一个逗号的url显示在url中,如果有人知道怎么做,我想从url中删除它

  RewriteCond %{THE_REQUEST} /product\.php\?product_id=([^&]+)&product_name=([^\s&]+) [NC]
  RewriteRule ^ /product/%1/%2? [NE,L,R]

  RewriteRule ^product/([0-9]+)/(.+)/?$  deal.php?deal_id=$1&deal_name=$2   [B,NC,L]                                                                                                                                     
可能的重复可能的重复