【问题标题】:Custom Domain for multiple webpages多个网页的自定义域
【发布时间】:2018-07-12 10:58:54
【问题描述】:

我在 Github Pages 上设置了一个带有一个 repo 的 Google 自定义域。所以 customdomain.com 会转到 GitHub 页面,而 customdomain.com/subfolder 会转到 same 存储库中的那个子文件夹。

有没有办法将 customdomain.com/subfolder2 设置为指向一个不同的 repo URL?

或者,这可能与子域有关吗?那么我可以让 subfolder2.customdomain.com 转到不同的仓库吗?

【问题讨论】:

    标签: dns github-pages domain-name google-domains


    【解决方案1】:

    此 Google Domains 页面说明您可以在管理面板中的 MyDaomains > DNS > Synthetic Records 下设置子域。看起来您可以使用相同的工具设置子域或子文件夹重定向。

    https://support.google.com/domains/answer/6072198?hl=en

    【讨论】:

    • 谢谢解答,我试试看!
    【解决方案2】:

    有没有办法将 customdomain.com/subfolder2 设置为指向不同的 repo URL?

    我不确定使用自定义域是否会模仿 yourUsername.github.io 完成的行为。

    或者,这可能与子域有关吗?那么我可以让 subfolder2.customdomain.com 转到不同的仓库吗?

    是的,当然。只需按照您设置 customdomain.com 的方式执行此操作。记录您的 DNS 配置,例如 example.customdomain.com。

    我建议您也查看Netlify。它们在免费类别下具有非常简洁的功能。

    【讨论】:

    • 谢谢。那我走子域路由吧。
    猜你喜欢
    • 1970-01-01
    • 2012-05-27
    • 2017-04-04
    • 2017-05-09
    • 2012-11-29
    • 2017-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多