I have searched SO but all the examples here are not working for me.
I have a $_SESSION['title']; //Session variable contains title from calling page
$title = $_SESSION['title']; //local variable contains article title
Let’s say the title of the article is news-of-the-day
How can I modify my rule to
http://www.newstoday.com/readnews/12/news-of-the-day
BTW http://www.newstoday.com/readnews/12 //this works
RewriteEngine on
RewriteRule ^readnews/([0-9]+)$ readnews.php?news_art_id=$1
Try something like that:
Added later: everything what goes after id will be in other_params GET param.