<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond
%{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^book([0-9]*)/$
book.php?id=$1 [L,QSA]
RewriteRule ^book([0-9]*)$ book.php?id=$1
[L,QSA]
RewriteRule ^comments([0-9]*)/$ comes.php?id=$1
[L,QSA]
RewriteRule ^comments([0-9]*)$ comes.php?id=$1
[L,QSA]
</IfModule>