Rene, my apologies. :blush: I accidentally removed your post, which refers the OP to the move plugin:
https://www.dokuwiki.org/doku.php?id=plugin:move. The idea being, I believe, that the safest way to move pages between namespaces is by means of that plugin. (I thought I was deleting my own post, but as we know once you click the button, there's no turning back!)
My own comment was to be that if @dsiME gets the wiki hierarchy, then his sitemap appears to be working. So I'm wondering whether he has in fact created namespaces. The way to check for that is to click on the internal link icon and see if there are separate directories earch with pages of its own. Or to check the media directory to see if media files have been saved in a hierarchy of folders.