php - Codeigniter throws 404 after uploading to server -


my project runs on localhost throws 404 when upload files server. wnen try access page on system, eg www.myadress.com/newcontroller throws 500 internal server error. problem? routes like

$route['default_controller'] = 'home'; $route['404_override'] = ''; $route['translate_uri_dashes'] = false; 

use this.

in config.php

$config['base_url'] = ''; $config['index_page'] = ''; $config['uri_protocol'] = 'auto'; $config['url_suffix'] = ''; 

in .htaccess (this should place out side application folder)

<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l]  </ifmodule> 

in autoload.php

$autoload['helper'] = array('url'); 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -