I have XAMPP installed on laptop with Mod Rewrite activated and running. I have a page on my website as following:
http://localhost/TripMan/staff/viewstudent.php?id=2
I would like to make it so that when people visit the URL above it is displayed as:
http://localhost/TripMan/staff/studentinfo/2
How would I write a rewrite rule to do this? I have never used this feature before.
Thanks
You need to use an
.htaccessfile like so: