![](/img/trans.png)
[英]Codeigniter website showing error 404 on Google Virtual Instant Live Server
[英]codeigniter website showing 404 errors
我在服務器上嘗試應用程序時遇到404錯誤。 它在localhost上完美運行。 誰能幫我? 網站網址是: 這是我的網站 這是我的.htaccess文件
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
config.php文件
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
routes.php文件
$route['default_controller'] = "HomeController";
確保您的文件和控制器的第一個字母以大寫字母命名。 這可能是服務器端的問題,因為linux區分大小寫。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.