How do I change the url from product?p=$name to product/$name.
I tied to use the .htaccses file but couldn't figure it out.
The link in php
echo"<a href = 'product?p=$name'></a>";
How do I change the url from product?p=$name to product/$name.
I tied to use the .htaccses file but couldn't figure it out.
The link in php
echo"<a href = 'product?p=$name'></a>";
Try .HTACCESS file again. This time enter following:
RewriteEngine On
RewriteRule ^product/([^/]*)/$ /product.php?p=$1 [L]
Note: I changed product? to product.php? because most likely you have PHP files.