Forum Moderators: open
A 301 is a server side action, and you cannot create it within the HTML itself.
That said, you certainly have a bigger issue here, trying to come up with the best approach to moving your site to a dedicated domain when you can't create the ideal situation of a 301 redirect. That's well beyond the scope of the Browsers and HTML forum, but it would probably include getting the inbound links to your free pages changed to your new domain, at least to the degree that you can.
You might also consider using your old, free space to show a site map for your new domain. But there's not going to be any easy way to immediately transfer the total pop of your old, free pages to a new dedicated domain. It will be a process you need to nurse along.
I once handled a situation like this with slow meta-refresh pages on the old site, plus requests to change links to the biggest inbounds. That's not necessarily the ideal, but it didn't take too long (4-5 weeks) until the new domain was rolling along on its own steam and we never looked back.