php - Codeigniter not woking on subdomain -


i have fresh copy of codeigniter configured on local server , works fine. when upload in http://subdomain.mydomain.com shows error.

an error encountered  unable determine should displayed. default route has not been specified in routing file. 

is there problem hosting provider or can fix using .htacess file?

i have no clue dealing with. appreciated.

error_log [28-apr-2015 19:53:56 america/new_york] php warning:  php startup: >     unable load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so: cannot open shared object file: no such file or directory in unknown on line 0 

thanks

note : can run in local web server not success run in real server. in codeigniter 3 must case sensitive code , using capital each word in every class this.

htaccess

rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l] 

config

$config['base_url'] = 'http://heloo.cmsapp.com/'; $config['index_page'] = ""; 

routing

<?php defined('basepath') or exit('no direct script access allowed'); $route['default_controller'] = "page_controller/home"; $route['page/contact'] = "page_controller/contact"; 

controller

<?php defined('basepath') or exit('no direct script access allowed');  class page_controller extends ci_controller {      public function __construct() {         parent::__construct();     }      public function home() {         //load home page     }      public function contact() {         //load contact page     }  } 

read documet : www.codeigniter.com/user_guide/general/styleguide.html


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -