Can you provide examples of the URL structure you would like, and what you need that URL rewritten back to?
blocblue
Practically a Posting Shark
837 posts since Jan 2008
Reputation Points: 272
Solved Threads: 161
Skill Endorsements: 12
diafol
Keep Smiling
10,665 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,514
Skill Endorsements: 57
Does you db table have a faux page title, e.g.
id pagename (unique) linklabel
1 home home
2 about-us about us
3 contact-us contact us
$d = mysql_fetch_array($r){
$link = "<a href="/{$d['pagename']}/">{$d['linklabel']}</a>";
}
This used along with the .htaccess file should now work for all pages added to the DB.
diafol
Keep Smiling
10,665 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,514
Skill Endorsements: 57
Or, you could add the page ID to your URLs. It's not as pretty, but it is common.
E.g. example.com/2-about-us
blocblue
Practically a Posting Shark
837 posts since Jan 2008
Reputation Points: 272
Solved Threads: 161
Skill Endorsements: 12