GitHub Pages 有没有 .htaccess 的替代品? [英] Is there an alternative to .htaccess for GitHub Pages?

查看:26
本文介绍了GitHub Pages 有没有 .htaccess 的替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 .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.confGithub 有关于如何使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆