<fe>
Setting aside this typo, the rule says:
take a request in the form
www.example.com/{blahblah}/?m={numbers}
</fe>
I have no idea where that / came from. Cough, cough. Ahem.
And rereading your original post I now realize you don't need the {blahblah} at all, because you say explicitly
http://www.example.com/blogg/?m=12345678
So the Rule just needs to say (with Condition as above)
RewriteRule blogg/$ http://www.example.com/blogg/%1? [R=301,L]
or
RewriteRule blogg/$ http://www.example.com/%1/blogg? [R=301,L]
depending on where you wanted the string of numbers to go. No need to capture "blogg/" if it's literal text.
If when you say "blogg/" you really mean "blogg/{moreblahblah}" then you'd capture the extra stuff and plug it in as $1. If so, write the rule as narrowly as possible:
RewriteRule blogg/([^.]+)$ {et cetera}
or
RewriteRule blogg/([^.]+\.html)$ {et cetera}
using the actual extension-- or none-- that your pages have. The idea is to skip the rule entirely if the request is for something in .jpg or .css or similar. Rules are evaluated before Conditions. If some wise guy has typed in
www.example.com/blogg/images/redface.gif?12345678
you do not want the Rule to kick in!