我已经传递了href链接,如下所示
<a href='http://ukbestweb-live.co.uk/trends/products/<?php echo $resGroup[id]; ?>/<?php echo str_replace(" ","-",trim($resGroup[group_name])); ?>'>$resGroup[group_name];</a>
我的.htaccess代码如下:
RewriteEngine on
RewriteRule ^products/([0-9]+)/(.*)$ products.php?group_id=$1&gcat=$2
那么如何将网址“http://ukbestweb-live.co.uk/trends/products.php?group_id=7&group_name=Designer-Lighting”转换为“http://ukbestweb-live.co.uk/trends/group/Designer-Lighting”
对于上面的seo友好URL,我的href链接应该是什么?什么应该是.htaccess?