Currently, I am using .htaccess rewrite to change some of the names of my URLs. However, I want to take it to another level.
Currently, here is what I have:
RewriteEngine On
RewriteRule ^newsarticle/page/([0-9]+)/?$ newsarticle.php?id=$1
So if my news article was located at: [url]http://www.mydomain.com/newsarticles.php?id=3[url]http://www.mydomain.com/newsarticles/page/3
However, I want it a little different.
Rather than ending in with the ID number, I want the URL to have the title.
If the news article title is Cool News Article, then I want the URL to be [url]http://www.mydomain.com/newsarticles/Cool-News-Article
Does anyone know what I would have to do to accomplish this task?
p.s. All news articles are pulled from a database and the title is stored in the field called `title