Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[提问]: 关于githubpages 绑定个人域名base配置的问题 #719

Open
17661977890 opened this issue May 30, 2024 · 1 comment
Open
Labels

Comments

@17661977890
Copy link

问题描述

我在绑定个人域名之前,部署到github pages,因为我是单独建的仓库, 使用 username.github.io/sm-blog 访问,当然也配置了base:/sm-blog/ 此时访问是ok的。
但是我在开始关联个人域名的时候,即配置如下:
1、在云平台配置cname dns解析 xx.xxx.com(二级子域名) 解析到 username.github.io
2、在github pages 配置了custme domain为 xx.xxx.com(二级子域名)
此时访问xx.xxx.com 发现样式全部404,经过排查,发现多了一个/sm-blog的路径,于是尝试把项目中的base:/sm-blog/ 配置去掉重新部署,就可以了。
为什么会这样?请帮忙解答谢谢

@17661977890
Copy link
Author

问题已在qq群中得到解惑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant