Dynamic URL Rewrite

Hi all, here is my issue:

I have a dynamic URL:
https://localhost/driver-courses2.php?action=show&id=5

I would like this URL to display as:
https://localhost/driver-courses2.php/page-name

Also, if possibe I would like this new extension to be dynamic, for example:
https://localhost/driver-courses2.php/$page-name

So the URL extension would depend on the id value.

I hope this makes sense, any help would be greatly appreciated. I am using XAMPP on a localhost, I have mon_rewrite enabled and Allowoveride set to All.

Thanks in advance.

Sponsor our Newsletter | Privacy Policy | Terms of Service