我試圖改變我的.htaccess文件很多次我的服務器上(Linux操作系統,PHP的CGI/FastCGI的)404代碼點火器的實時Web服務器
我的虛擬主機託管是經銷商在和我有兩個面板的CP和南國
但是,當我上載我的整個網站,我只收到404錯誤,並按照我的配置,htaccess以及控制文件和文件夾結構
文件夾結構
/
index.php
/application/
/application/views [Contains main view (index page)]
/application/controllers [Contains the main controller]
如從代碼點火器(3.0)
.htaccess文件[第一時間]
DirectoryIndex index.php
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
.htaccess文件[第二時間]
RewriteEngine on
RewriteBase/
RewriteCond $1 !^(index\.php|fonts|img|css|js|dashboard|support|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
配置文件
$config['base_url'] = '/';
$config['index_page'] = 'index.php?';
$config['uri_protocol'] = 'REQUEST_URI';
默認
錯誤日誌
ERROR - 2015-02-06 14:53:34 --> 404 Page Not Found: /index
ERROR - 2015-02-06 14:53:35 --> 404 Page Not Found: /index
ERROR - 2015-02-06 14:54:01 --> 404 Page Not Found: /index
我試圖將URI協議更改爲CI中所有可能的選項,更改了htaccess,刪除了訪問權限。
現在沒有什麼工作對我來說
我的基本網址的網站是http://pixelvision.com.br/
網站工作在我的本地網絡服務器(易PHP開發/生產) 井和不返回任何錯誤,當上運行我的本地網絡服務器。
但是,當我將整個網站(更新配置文件),並嘗試爲所有控制器都運行返回404錯誤
不應該「http://pixelvision.com.br/」是你的BASE_URL嗎? – Craig 2015-02-06 15:45:41
@Craig我試過了,404仍然改變了BASE_URL爲'pixelvision.com.br/',你問及dind't工作 – Darknessxk 2015-02-06 15:52:05
你也有「http://」嗎? – Craig 2015-02-06 15:54:31