Page Not Redirecting

Hello, 

I am trying to redirect a page to a new url. I followed the instrections on this page https://gist.github.com/domenic/1f286d415559b56d725bee51a62c24a7 but it does not seem to have worked. When I go to the old url to test the redirect, it just downloads the code I place in the file. 

The old url I am attempting to redirect is https://boozallen.github.io/licenses/bapl 

The new url I need it to go to is https://github.com/boozallen/Public-License/blob/master/LICENSE.md 

Any and all suggestions for a solution are appricaited. 

Thank you!