So that the url:
viewproducts-producttitle-productname-id-123-cat-categoryname.htm
Will redirect to:
viewproducts.php?producttitle=productname&id=123&cat=categoryname
- Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule viewproducts-producttitle-(.*)-id-(.*)-cat-(.*)\.htm$ viewproducts.php?producttitle=$1&id=$2&cat=$3
Can anyone point out what is wrong with this as it worked fine on my previous server.
Thanks, Steve