我是一个完整的初学者CodeIgniter,一般框架,我尝试过Laravel和CakePHP,但都是非常复杂的安装(对我来说),所以现在我已经下载CI,它看起来很简单,除了此访问被拒绝错误。CodeIgniter错误403
错误是默认的Firefox 403(访问被拒绝)错误。它说: You don't have permission to access the requested object. It's either read-protected or not readable by the server.
发生这种情况时,我去localhost/codeigniter/application
我的基本网址:http://localhost/codeigniter/application
。我不知道为什么我这样做,但它似乎合乎逻辑。
更新:我编辑htaccess文件后,使它看起来像这样: `RewriteEngine叙述在
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.PHP/$1 [L]
,它给了我一个403错误(这是不是默认的Firefox错误)和它只是说“目录访问被禁止”。
只需访问http:// localhost/codeigniter – Fil
我做了,它的工作原理。但我想要做的是进入“应用程序”目录。 –
你不能这样做,它必须是'http://example.com/ [controller-class]/[controller-method]/[arguments]'方式 – Fil