- Code: Select all
RewriteRule ^.+-p-(.+)\.htm?$ /showproduct.asp?productid=$1
/decoupage-diva-tray-by-faber-castell-p-cfk1061.htm
Will covert to below as expected
/showproduct.asp?productid=cfk1061
but I have second scenario where i want to covert below url to as follows"
/decoupage-diva-tray-by-faber-castell-p-cfk1061.htm?src=test
/showproduct.asp?productid=cfk1061&src=test
How do I achieve both scenario with one rule if possible.
If not possible, what will be second rule I need ?
Thanks in advance for your help