Easy SEF URL’s with PHP
Sunday, August 8th, 2004Just a little brainstorm on how to make your links SEF.
- Old: content.php?id=58&page=3
- New: content/Some-crazy-title/58/3
Basically, what I like to do is have the title of the page I’m showing (like an article title) as the first part of the URL, and then the “important” information like ID’s and page numbers etc. go after it. As long as you follow the same “layout” of the URLs in every URL you make, then you can use the information as if it were a query string. So if you use Title/ID/PageNum, then use it everywhere!
(more…)