Creating Permalinks

Soldato
Joined
30 Apr 2007
Posts
3,095
Location
Kent
How do software packages such as wordpress create permalinks? I've looked in the .htaccess file of an installation and found they use the ModRewrite Rule, but would like some more pointers about how this affects their database as I'm trying to get my head around it, to no avail.
 
Well in the PHP Framework Code Igniter they use URI rewriting to map the request to a function call and part(s) of the URI is passed to the function as a parameter(s). usually one of those parameters or a combination of them creates a unique key so you can look it up in the database.

But the way CodeIgniter works every request goes to the index.php page and that kindly does all the routing etc for you.
 
Back
Top Bottom