How to translate the template /123/8888/ in index.php?id=1233&num=8888?

Greetings , all-Knowing ALL !

I would like site.ru/123/8888/ translate into index.php?id=1233&num=8888

try approximately so
RewriteRule ^([0-9-]+) index.php?id=$1 [L,QSA]
RewriteRule ^([0-9-]+)\/([0-9-]+)/?$ index.php?id=$1&city=$2 [L,QSA]

get only index.php?id=123
March 19th 20 at 08:54
1 answer
March 19th 20 at 08:56
Solution
RewriteRule ^([0-9]+)$ index.php?id=$1 [L,QSA]
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?id=$1&city=$2 [L,QSA]
COOL ! :)

PS is not closed first and second different audio

P. S. S. the enemies here can get through ? - Otilia.Koe commented on March 19th 20 at 08:59

Find more questions by tags htaccess