Page 1 of 1

?id=stuff to stuff.html

Posted: Mon Jul 23, 2007 2:43 pm
by m2babaey
Hi
I know how to handle links like http://domain.com/article.php?title=thi ... icle-title
But what can I do to do the same job ( querying the database for that article) when users want to load this link: http://domain.com/articles/this-is-article-title.html

Posted: Mon Jul 23, 2007 2:50 pm
by superdezign
Look into Apache's mod_rewrite.
I've also written a fairly simply URL Parsing tutorial to create links such as the ones I've made on Volectricity. It's purely database-driven, however, and may be more than you're after.

Posted: Mon Jul 23, 2007 2:50 pm
by feyd
mod_rewrite.

We've got many many many threads on the subject.

Posted: Mon Jul 23, 2007 7:41 pm
by RobertGonzalez
superdezign wrote:Look into Apache's mod_rewrite.
I've also written a fairly simply URL Parsing tutorial to create links such as the ones I've made on Volectricity. It's purely database-driven, however, and may be more than you're after.
I like the tutorial super. Very well written.