在localhost我的网站运行正常,我在测试服务器中发布后,它不起作用,它打印出来:
我的登录页面运行没有问题...
但在我点击“登录”后,我收到错误,但网址是正确的...
我的config.php
$config['base_url'] = 'http://merge.***.it/merge/';
$config['index_page'] = 'index.php';
routes.php文件
$route['default_controller'] = 'auth/login';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
试试这个。在index_page中填空。
$config['index_page'] = '';
并在根文件夹中使用.htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|phpinfo\.php|Charts|assets|uploads|application|sitemap\.xml|robots\.txt|gyan\.rss)
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]