duanchi8836 2017-01-04 14:28
浏览 22

CodeIgniter如何使403禁止页面显示相同的默认页面

Default inside CI Notice that inside every folder in CI have an html page called 'index.html' which contain

<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

and thus if you open the folder using the url it will produce the access forbidden page as shown in my image above. However when I copy pasted the index.html into another new folder that is created by me, it showed the page below image. I want it to show the page exactly as the one created by codeigniter, which file do I need to configure to make the page show the forbidden page like that ?

Created my own

  • 写回答

1条回答 默认 最新

  • duanba7498 2017-01-04 15:57
    关注

    I figured it out, should have copied the .htaccess file too.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?