Can this be done with .htaccess?
Hello,
Just wondering if I can hide a parameter in .htaccess
I have this rule
PHP Code:
RewriteRule ^products/([^/]+)/([^/]+) /products?n=$1&id=$2 [NC]
It turns this
http://domain.com/products?n=some-name&id=3
into this
http://domain.com/products/some-name/3
And it works just fine, what I would like to achive is to remove the "/3" entirely so that it looks like this at the end:
http://domain.com/products/some-name
Without of course losing the functionality of the id paramenter.
Is this even possible?
Thanks :)