View Full Version : Need help prettying-up my article's URL

08-09-2011, 06:01 AM
Would someone please help me learn how to write a Mod_Rewrite script to do this...

This is my current URL which requests an article from my database.

www. MyWebsite.com/article.php?url_title=all-about-creating-dynamic-content

I would like to keep just the "pretty article name" and get rid of the rest of the query string.

In addition, I would like to add articles/ to denote to users that they are reading one of many articles.

It should look like this...

www. MyWebsite.com/articles/all-about-creating-dynamic-content

I've tried reading up on Mod_Rewrite, but the materials out there aren't well-written and often go all over the place without a simple "To get this, Do this" format.

Any help would be appreciated.