301 redirect on anchor links, is possible?

I was wondering if is possible to create 301 redirects on the anchor links, so I can switch the open page to multiple pages site and not affect the SEO, I found this solution, https://stackoverflow.com/questions/1229203/redirect-301-with-hash-part-anchor, is there any other solution that you might know?