RewriteEngine On
RewriteRule ^([a-zA-Z0-9\-]+)/index\.htm$ akcms_category.php?path=$1
RewriteRule ^([a-zA-Z0-9\-]+)/index-([0-9]+)\.htm$ akcms_category.php?path=$1&page=$2
RewriteRule ^tag/(.+)/$ akcms_search.php?keywords=$1
errorDocument 404 /404.htm