htaccess重定向到类别

I need an htaccess code that turns:

site.com/category/example

to

site.com/list.php?catID=example

how can I do that?

I also need:

site.com/read/today

to

site.com/show.php?id=today

Please help me. I've got a few things but couldn't make it work for me. Here is what I got:

RewriteRule ^([a-zA-Z0-9\-]+)$ $1/anasayfa [L,NC]
RewriteRule ^([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)$ sitegoster.php?id=$1&kayit_id=$2 [L,NC]

Tried to modify these but failed.

Try the following rules:

RewriteRule ^category/([a-zA-Z0-9-]+)$ list.php?catID=$1 [L, NC]
RewriteRule ^read/([a-zA-Z0-9-]+)$ show.php?id=$1 [L, NC]