htaccess rewrite ONLY if first part of path is numeric
snippet in htaccess

htaccess rewrite ONLY if first part of path is numeric

user7087

RewriteEngine on
RewriteRule ([a-zA-Z])/ index.php?k=$1
RewriteRule ([0-9]+)/ index.php?id=$1