php – codeigniter网站显示404错误
发布时间:2020-12-13 22:23:51 所属栏目:PHP教程 来源:网络整理
导读:我在服务器上尝试应用程序时遇到404错误.它在localhost上完美运行.谁能帮我? 网址网址是: Here is my site 这是我的.htaccess文件 RewriteEngine onRewriteCond $1 !^(index.php|robots.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_F
我在服务器上尝试应用程序时遇到404错误.它在localhost上完美运行.谁能帮我?
网址网址是: Here is my site 这是我的.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区分大小写.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |