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後綴。原本就在那裏。並點擊鏈接說,不好的鏈接 –