开发者社区 问答 正文

网站主页必须使用php吗?

我使用纯html网页出现如下错误(包括主页,之前使用的php可以正常访问,改为纯html之后就出错了):
403错误:

Forbidden

You don't have permission to access / on this server.




如果我强制访问路径http://zongmo.tech/index.html,则提示:

Not Found

The requested URL /index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


展开
收起
1681266294596680 2018-08-20 09:39:02 941 分享 版权
3 条回答
写回答
取消 提交回答
  • ,也可以QQ 2445638917 帮你调试
    2018-08-20 10:04:49
    赞同 展开评论
  • to 
    古散  2018-08-20 09:49:40

    没有必须,html是可以的,你这个是程序的问题


    就简单的这几条都无法访问,代码有问题吗?
    <html>
    <body>
    123
    </body>
    </html>



    2018-08-20 10:04:39
    赞同 展开评论
  • 互联网小站长、java程序员、运营爱好者,关心开源与喜欢的一切,喜欢总结写攻略,对产品设计有点兴趣......
    没有必须,html是可以的,你这个是程序的问题
    2018-08-20 09:49:40
    赞同 展开评论
问答分类:
问答标签:
问答地址: