Hi all
I have searched the eather for tutorials and examples of code, to which I keep finding the same thing over and over which are examples of how to create mod_rewrite in the .htaccess file of a site which secretly redirect the user to productdetails.php if they type products/ in the address bar:
RewriteRule products/$ /productdetails.php
This is all good an well, but I really need to understand how the PHP page deals with the data that needs to be displayed on screen.
I have always created a link in a page as such 'productdetails.php?prodid=1' and this in turn is displayed across the address bar at the top and the page goes and gets the data from the database. I understand that the point of tidy urls is to do away with this dymanic link and replace with products/1/ but its totally confusing to me from the PHP side on how to achieve this.
Do I have 1 php page that builds my whole site? If so, how the hell do i display my links to sub sections? Can someone direct me to a really useful tutorial or example snippets of code to help me understand how I go about achieving this?
Cheers
A very confused individual