php - Problems transfering codeigniter 3.0 from localhost to live server hostgator -
i 404 page when trying transfer codeigniter 3.0 localhost live server @ hostgator. data on config file, .htaccess , index.php.
structure:
- application
- system
- index.php
- .htaccess
my config file
$config['base_url'] = 'http://mysyite/'; $config['index_page'] = ''; $config['uri_protocol'] = 'request_uri'; $config['url_suffix'] = ''; $config['language'] = 'english'; $config['charset'] = 'utf-8'; $config['enable_hooks'] = false; $config['subclass_prefix'] = 'my_'; $config['composer_autoload'] = false; $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; $config['allow_get_array'] = true; $config['enable_query_strings'] = false; $config['controller_trigger'] = 'c'; $config['function_trigger'] = 'm'; $config['directory_trigger'] = 'd'; // experimental not in use $config['log_threshold'] = 4; $config['log_path'] = ''; $config['cache_path'] = ''; $config['rewrite_short_tags'] = false;
.htaccess
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
index.php
$system_path = 'system'; $application_folder = 'application';
make sure controllers , models file names start capital letters.
starting codeigniter 3.0, class filenames (libraries, drivers, controllers , models) must named in ucfirst-like manner or in other words - must start capital letter.
Comments
Post a Comment