Codeigniter Url without index.php -


i want create app url 'http://example.com'. entering url, shows 'http error 403.14 - forbidden'. when have inserted 'index.php' @ last of url 'http://example.com/index.php' landing page rendering in browser have changed

$config['base_url'] = 'http://example.com';  $config['index_page'] = ''; 

and

$config['uri_protocol'] = 'request_uri'; 

in config.php file. have placed .htaccess file in codeigniter root folder along application , system folder. in .htaccess file have coded

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

i want remove 'index.php' url. using iis 8.5 web server.

in ci can set session data when login successful:

$this->session->set_userdata('username' $this->input->post('username')) 

you can unset @ logout

$this->session->sess_destroy(); 

and use database sessions: https://www.codeigniter.com/user_guide/libraries/sessions.html


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -