Let us say I've the domain http://www.example.com.

After I browse to http://www.example.com/12345 it brings me the individual getting id 12345 from database. I would like it to work even I write another meaningless couple of figures in the finish from the URL http://www.example.com/12345/qwerty.

This is actually the current config:

RewriteRule ^/(\d+)$ /person.php?id=$1 [QSA,L]

What must i add config?

RewriteRule ^/(\d+) /person.php?id=$1 [QSA,L]

ignores everthing following the amounts..