Not working rewriteRule prchina?

trying to convert references of the form domain.ru/?code=1asdasdaw14 in domain.ru/code/1asdasdaw14 not working trying
RewriteEngine On
RewriteRule ^code/([^/]*)$ /?code=$1 [L]


The reason?
July 9th 19 at 10:15
1 answer
July 9th 19 at 10:17
Need to change places. Here it is:
RewriteRule ^/?code=([^/]*)$ /code/$1 [L]
did not help - Elmer78 commented on July 9th 19 at 10:20

Find more questions by tags Apachehtaccess