Thanks for your reply.
I tried these codes.
The first: It works, but not as I would expect.
First code makes:
domain.hu/hu/something => domain.hu/something?q=hu/something
It is not good for me, it' no SEO friendly.
Or is there a possibility to cut off the end of the URL: ?q=hu/something after 301 redirecting?
The second code (Rewrite) doesn't work at all.
In that code I don't see RewriteCond. Should it be the reason?
Or any solution to solve my problem, I need it much.