Something similar to Jekyll pageless redirects, compatible with GitHub pages?

Hi, first-time poster – I’m trying to deploy to github pages, and would like to better configure 301 redirects for certain routes.

All the examples I’ve seen assume that a Rack-compatible server will host the site, which make them incompatible with GitHub pages.

What’s the general wisdom on doing this with a middleman-dependent site? Is it ok / advised to add .htaccess files in various paths under source/ ?

Answering my own question in case someone else may find it helpful: I found redirect support which doesn’t seem documented yet, but once I found it, the feature file in the commit was more than sufficient to implement what I needed.

New to this-- how do you implement that feature file into your local version of Middleman?