I try to remove the index page in Codeigniter
the first step I do this //old Code
$config['index_page'] = "index.php”
//New updated code(Only Need to remove index.php )
$config['index_page'] = ""
then for second step i do this creat file .htaccess in root of codigniter then put this code source
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
but it's the same problem and I can't refresh the web page
with index page the URL work: http://localhost:8089/codeigniter3/index.php/Hello/dispdata but without index page don't work http://localhost:8089/codeigniter3/Hello/dispdata
Hello is the controller, finally thank for help, :)
The problem is, you installed it in /codeigniter3/
This should fix it:
// remove index.php
$config['index_page'] = ""
// Allow installation in a subfolder of your webroot
$config['uri_protocol'] = "REQUEST_URI"
And keep your rewrite settings, they are ok.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With