我正在使用 codeigniter 框架编写 Web 应用程序。这是文档根目录的结构
application
system
website
我想要的是只有网站目录可以访问。这是 .htaccess 的内容
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/website/
RewriteRule .* /website/%1 [QSA]
当我在浏览器中输入网站 url 时,我被重定向到网站目录。到目前为止,一切都很好。有用。当我尝试访问网站目录中的目录时,问题就来了。我明白了
404 page not found
怎么做才能访问网站目录下的目录?