I have been designing a backend for my content management system and am just about ready to start designing a frontend around this. I want, I mean I have to be able and have human friendly URL's and am not sure how to go about this.
I planned to use $_GET to retrive section id, category id, then the content id (so url would reflect index.php?sec=2&cat=4&content=67 , or something along them lines). With htaccess, I only know how to cause that url to change to index/2/4/67 and similar. What I want is to have the URL human friendly with the titles instead of ID numbers.
I was thinking that I would obviously use $_GET to retrive the titles of each item (though the id is primary), but wasn't quite sure what problems this would lead to (I cant set the item as an integer to protect against attacks). Is this how it would be done, or is there a way to substitute this out in the htaccess? I dont want to add a few hundred lines to htacess to do this either (unless there is an automatic way to get PHP to write them).
Thanks for any help, suggestions, or tutorials you can point me to. If anyone is interested, I will share code once its completed (or before if you ask me).
If it helps, I also have menu items that are shown depending on the section id.
Edited by Killswitch, 11 September 2007 - 11:17 PM.
