I am trying to use apache-rewrite rule to convert the below URL:
http://localhost/foo/bar/news.php?id=24
Into this
You are missing the title of the URL. If you wish to show that in URL, then you must include it in the link as well, like this: