我有一個在Localhost上正常工作的Codeigniter項目。現在我上傳它在活服務器上。但它給了我404頁面找不到錯誤。我已經將它上傳到 www.mydomain.com/city/文件夾中。到目前爲止,我在application/config/database.php中配置了數據庫名稱和密碼,並將base_url更改爲www.mydomain.com/city/ in application/config/config.php文件沒有找到活服務器頁面上的Codeigniter項目
我的.htaccess看起來像
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
任何人幫助嗎?
你的域名是什麼? –
對不起。它會像www.mydomain.com/city/ –
嘗試www.mydomain.com/index.php/city/工作與否? – msvairam