So I have decided to switch from using Middleman (to generate a static site that was hosted on Github pages) to using WordPress. I am hoping this will lower the barrier to writing new blog posts.
Copying all my previous posts overtook quite sometime and thanks to a Stackoverflow post ,I found the required code to add redirects onto my Github pages site. So if you only have access to the html page and cannot do a redirect any other way, adding the following meta tag in the head allows you to do just that.
<meta http-equiv="refresh" content="1; url=http://example.com">
Happy Coding