I have real trouble understanding mod_rewrite, and got some help in creating a RewriteRule to have simple urls for our site
RewriteRule ^news/([a-zA-Z0-9_-]+)$ /news/$1/ [R]
RewriteRule ^news/([a-zA-Z0-9_-]+)/$ news/show.php?id=$1
So someone can visit site.com/news/700/ and the url will look the same to them, but puts the request to our server with /news/show.php?=700 to pull the article out.
I want to include the title of the article into the url, just to make it more user friendly when someone see's a link to our site.
site.com/news/700/heres-our-important-title
Can someone let me know what I need to change to make this happen so the code will still work properly? So a url can have that extra text at the end, but it will still only pull the id number after /news/.
Thanks.