apache - cannot remove index.php in CodeIgniter application -
apache - cannot remove index.php in CodeIgniter application -
i'm deploying web application made in our live server im having troubles in figuring out how remove index.php. have read several blogs regarding how remove index.php in codeigniter application.
i have tried settings on .htaccess
rewriteengine on rewritebase / rewritecond %{request_uri} ^system.* rewriterule ^(.*)$ /index.php?/$1 [l] rewritecond %{request_uri} ^application.* rewriterule ^(.*)$ /index.php?/$1 [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l]
and on config.php
$config['index_page'] = '';
$config['uri_protocol'] = 'request_uri';
but still can't figure out how remove it. need edit in apache httpd.conf?
thanks!
can seek removing ? nowadays after index.php in .htaccess:
change:
rewriterule ^(.*)$ index.php?/$1 [l]
to:
rewriterule ^(.*)$ /index.php/$1 [l]
php apache codeigniter
Comments
Post a Comment