I am trying to use apache-rewrite rule to convert the below URL:
http://localhost/foo/bar/news.php?id=24
Into this
Looks like you've forgotten the slash in front of “news.php”.