Can someone prompt me in the right direction to use mod_rewrite?

Viewed 173

I am a bit new to this but I am trying to learn. I know that in PHP we can have a URL that ends in ?id=something but it seems to me that some websites are doing it just forward slashes. Is this possible using PHP? I saw these questions that seem to say it is possible but I haven't cracked it yet.

Can someone prompt me in the right direction for mod_rewrite? I would like to change the following URL

http://www.example.com/all-products/?onsale=true&topic=health&item=adaaos45

into

http://www.example.com/all-products/items-on-sale/health/adaaos45

Can you point me into the right way?

1 Answers
Related