GitHub Pages 有没有 .htaccess 的替代品? [英] Is there an alternative to .htaccess for GitHub Pages?
问题描述
我知道 .htaccess
不受支持 来自 GitHub Pages.是否有替代密码保护 GitHub Pages 托管的网站的特定目录的方法?
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?
推荐答案
虽然你不能使用 .htaccess
或 .conf
,Github 有关于如何使用 Jekyll Redirect From 插件.
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/
上面的页面不再提及该插件.jekyll-redirect-from 插件 GitHub 存储库的直接链接是 https://github.com/jekyll/jekyll-redirect-from
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
这篇关于GitHub Pages 有没有 .htaccess 的替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!