- Code: Select all
Product.php?item=90
This format has been through my codes. I wonder if there are any ways i can change this format to:
- Code: Select all
Products/90
Is there any way that if i click the original URL (Product.php?item=90)
it would redirect automatically to the pretty URL format.
I've tried different combination but none of them seems to work.
I've tried using:
- Code: Select all
RewriteRule ^Product.php?item=([0-9]+)$ Product/$1/ [R]
RewriteRule /Product/([0-9]+)/ Product.php?item=$1 [L]
The following code seems to be recurssive.. once i run the whole thing... it doesn't stop. Can you help me...
Thanks.