脚本宝典收集整理的这篇文章主要介绍了php – 404页面找不到你请求的页面在codeigniter中找不到,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
$config['base_url'] = 'http://myworldmirror.COM/'; $config['index_page'] = 'index.PHP/home';
的.htaccess
RewrITeEngine On RewriteBase / RewriteCond %{REQUEST_FILENamE} !-f RewriteCond %{REQUEST_FILENAME} !-d rewriterule ^(.*)$index.PHP/$1 [L] Options -indexes
应用/配置/ database.PHP中
$active_group = 'default'; $query_builder = TRUE; $db['default'] = array( 'dsn' => '','hostname' => 'localhost','username' => 'newsels1','password' => 'newsels1','database' => 'newsels1','dbdriver' => 'MysqL','dbPRefix' => '','pconnect' => FALSE,'db_debug' => (envIRONMENT !== 'production'),'cache_on' => FALSE,'cachedir' => '','char_set' => 'utf8','dbcollat' => 'utf8_general_ci','swap_pre' => '','encrypt' => FALSE,'comPress' => FALSE,'stricton' => FALSE,'failover' => array(),'save_queries' => TRUE );
产量
当我打开此URL“http://myworldmirror.com/”时,会显示以下输出
更改$config [‘index_page’] =’index.PHP / home’; To $config [‘index_page’] =”;
的.htaccess
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$index.PHP?$1
检查application / config / routes.PHP中的默认控制器值
$route [‘default_controller’] =’welcome’;
检查application / controllers / Welcome.PHP是否存在,否则将$route [‘default_controller’]值更改为您的要求
以上是脚本宝典为你收集整理的php – 404页面找不到你请求的页面在codeigniter中找不到全部内容,希望文章能够帮你解决php – 404页面找不到你请求的页面在codeigniter中找不到所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。