如何结合php路由和seo

Let's assume that we have a news website, and it uses routing, for example the query:

    127.0.0.1/news/index.php?id=33

looks like

    127.0.0.1/news/33

and we select * from table where id=33 to view the details.
but how would Google find it? Should I write a dynamic meta tag? like:

    <meta name="description" content="'.$row['title'].'"/>

or what? I'm afraid that my website news wont be recognized by spiders.

Use url rewriting

..I'm not sure, but this should work, I have never used it before :/

RewriteEngine on
RewriteRule ^/([0-9]+)/?$ index.php?id=$1 [NC,L]