I'm with a couple dynamic fragment url encoding thus I've for instance a url: localhost/#/home

I needed to obtain the htaccess to rewrite this to localhost/home however am getting challenge with this.

Does anybody understand how I'm able to do that?

You cannot. Fragments are handled client side. They're never delivered to the server, so Apache never can access it. The approach is broken.