【发布时间】:2014-07-01 15:24:14
【问题描述】:
我用 index.php、style.css 和 screenshot.png 创建了一个新主题。后来创建了 header.php、footer、menu 等。问题是我无法访问这些。我可以毫无问题地打开 index.php、style.css 和 screenshot.png。所有文件的权限为 755,检查 x10。
URL 示例:
- http://mydevelops.lv/wp-content/themes/wpbootstrap/index.php
- http://mydevelops.lv/wp-content/themes/wpbootstrap/style.css
- http://mydevelops.lv/wp-content/themes/wpbootstrap/header.php
- http://mydevelops.lv/wp-content/themes/wpbootstrap/footer.php
错误信息:
您无权访问此服务器上的 /wp-content/themes/wpbootstrap/header.php。
此外,在尝试使用 ErrorDocument 处理请求时遇到 404 Not Found 错误。
【问题讨论】:
-
mysite.lv/wp-content/themes/wpbootstrap/footer.php 没有显示禁止,它显示了 404 “在此服务器上找不到请求的 URL /wp-content/themes/wpbootstrap/footer.php。此外,尝试使用 ErrorDocument 处理请求时遇到 404 Not Found 错误。” 正如您所说,mysite.lv/wp-content/themes/wpbootstrap/header.php 的情况相同,只是不是“禁止”。仔细检查你的路径。
-
您确定已扩展并上传您的网站吗?唯一的工作内容是http://mysite.lv,它回显“即将...”
-
对不起,原来有一个 sutch 站点为 mysite.lv,这就像一个例子。已编辑
-
“糟糕!谷歌浏览器找不到 mydevelops.lv” 所以,您的网站要么没有上线,要么您没有为其设置任何名称服务器。