我是一個完整的初學者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