-
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
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks