<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^cat-([0-9]+).html$ category.php?id=$1 [L]
RewriteRule ^cat-([0-9]+)-([0-9]+).html$ category.php?id=$1&page=$2 [L]

RewriteRule ^topic-([0-9]+).html$ topic.php?id=$1 [L]
RewriteRule ^topic-([0-9]+)-([0-9]+).html$ topic.php?id=$1&page=$2 [L]

RewriteRule ^reply-([0-9]+).html$ reply.php?id=$1 [L]
RewriteRule ^user-([0-9]+).html$ profile.php?uid=$1 [L]
</IfModule>

RewriteEngine On

RewriteRule ^(.*).html$ $1.php [L,NC]

RewriteRule ^(.*).rk$ $1.php [L,NC]
