RewriteRule ^Buy\-(.*)-b(.*)\.html productdetails.php?bname=$1&bid=$2
如果$ bname =“购物时间”或$ bname =“时间去购物”,.htaccess中的上述代码正常工作。并给出了下面的链接 http://www.yourdomain.com/Buy-Time去逛街,b1.html 或 http://www.yourdomain.com/Buy-Time去:购物,b1.html.htaccess rewriterule给出错误
但如果$ BNAME =“时间:逛街”上面给出了一个糟糕的链接。 购买时间:去购物-b1.html
啊这是一个错字,我忘了在我的问题的最后一个链接中键入-b1后缀。原本就在那里。并点击链接说,不好的链接 –