服务器上的codeigniter项目配置

时间:2017-03-18 10:35:55

标签: php codeigniter

我的codeigniter项目在localhost上正常工作但是当我在托管服务器上传输它时,它在route.php中的default_controller即登录正常工作但登录后显示“你正在查找的资源” for已被删除,更改名称或暂时不可用。“ 我的config.php文件发生了变化:

$config['base_url'] = 'http://XXXXXXXX ';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';

routes.php文件:

$route['default_controller'] = 'login';

.htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]   

0 个答案:

没有答案