Is there an alternative to .htaccess for GitHub Pages?

hatmatrix picture hatmatrix · Nov 19, 2012 · Viewed 23.5k times · Source

I understand that .htaccess is not supported by GitHub Pages. Is there an alternative for password-protecting particular directories for websites hosted by GitHub Pages?

Answer

jondueck picture jondueck · Oct 20, 2014

Although you can't use .htaccess or .conf, Github has instructions on how to use the Jekyll Redirect From plugin.

https://help.github.com/articles/redirects-on-github-pages/

The page above no longer has any mention of the plugin. The direct link to the jekyll-redirect-from plugin GitHub repo is https://github.com/jekyll/jekyll-redirect-from