This question already has an answer here:
I am trying to figure out how to make my urls SEO freindly.
I have an URL like this: https://www.example.com/search.php?food=fruit&country=denmark&price=cheap
I would like to make the URL to be something along the lines of: https://www.example.com/best-cheap-fruit-in-denmark
I have played around with htaccess but I'm not sure that is suitable for the type of thing im trying to achieve.
Can someone point me in the right direction? Thanks
</div>
You are actually in the right direction.
It can be made with apache's mod_rewrite and the rewrite rules can be in your .htaccess files.
First you have to make sure mod_rewrite is enabled and then create the needed RewriteConds and RewriteRules.