10-09-2007, 08:36 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Posts: 126
Thanks: 4
|
mod rewrite - how to get title in url?
Hey guys!
I have a php file names view_news.php. This PHP file gets the item id from the url and queries the news table in my DB to show the entry with that id.
The table has a title column. How can I make a mod rewrite file so I can have my title as the url eg: mydomain.com/news/id-news-title-goes-here.html?
I don't want to add each news item seperately into my htaccess file. How can I accomplish this and how can I get php to remove all weird symbols etc... from my url title?
Looking forward to your answers! :)
|
|
|
|