codeigniter - Unable to load website on url it open when I enter **www.domain.com/controller** -
i have developed application in codeignitor ci. website id running on local machine. htaccess code below
<ifmodule mod_rewrite.c> rewriteengine on rewritebase /root directory name/ # directs ee web requests through site index file rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
and directory structure
|application |css |js |htaccess |index
i have given controller name in route.php default_controller
please let me know wrong?
oppz, in file folder structurer forget upload
system
folder. solved issues.
and in config/config.php
(change this)
$config['base_url'] = ''; $config['index_page'] = '';
in .htaccess
(out side application folder) replace this
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
Comments
Post a Comment