html - 上传WordPress静态HTML站点后GitHub上显示404错误

标签 html wordpress github static

我正尝试在 Linux 机器上在 GitHub 上托管我的 WordPress 网站 使用 Apache2 和 MySQL。

在 GitHub 上:

created repo > username/username.github.io

在 WordPress 上:

'using simply static plugin' simply static plugin settings > general Destination URLs > username.github.io Dir methon : local dir local dir : /var/www/html/static/ (full permission chmod 777)

simply static pluginsettings > include/excule Additional Files and Directories : /var/www/html/wordpress/wp-content/themes/zerif-lite/ /var/www/html/wordpress/wp-content/uploads/ theme name : zerif-lite

Linux 终端:

git init git add -a 
git commit -m "first commit"
git remote add origin https://github.com/username/username.io.git 
git push -u origin master : creds

但在 GitHub 页面上显示:

404 site not found

这里没有 GitHub Pages 站点。

最佳答案

git push -u origin master : creds 看起来很可疑

简单地尝试 git push -u origin master,并确保 configure your publication branch for your GitHub pages repository .

关于html - 上传WordPress静态HTML站点后GitHub上显示404错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57319631/

相关文章:

php - 外部 CSS 链接无效

wordpress - W3 总缓存权限

Ruby、Sinatra、omniauth-github 身份验证失败回调错误

Github "Problems parsing JSON",在 Windows 10 上从控制台创建存储库

html - CSS - Div获取父级的剩余宽度空间

c# - 如何将数据添加到我的代码隐藏表中并以 html 形式显示?

Javascript 固定页脚覆盖焦点

php - 在 Nginx 后面的子目录中托管 Wordpress

css - 在悬停/选择时缩短 Elementor 菜单下划线

git - Github desktop 在哪里安装命令行版的Git