In my public_html I have a profile.php file and some links in this format
domain.com/shop/index.php?c=amazon&id=2
that lead to the amazon shop with category id 2
In a folder inside public_html, named shop I have index.php that shows the products of the 2 category.
However instead of the above ugly link I want to have something in the format of
domain.com/shop/company/category-id
e.g. domain.com/shop/amazon/2
I don’t want to have profile.php and shop.php in the same folder because I have another RewriteRule in there.
What is the RewriteRule I have to use in this case of two variables? Thank you
You’ll want to create a
.htaccessfile in theshopdirectory that include the following: