How to Remove Index.php in CODEIGNITER FRAMEWORK

Steps to remove index.php from url codeigniter :-

Config changes :- Go to “application/config/config.php”
Find below code:-
1
$config['index_page'] = 'index.php';
Replace with the below code:-
1
$config['index_page'] = '';
.htaccess changes :- If you not have any htaccess create new and place it on your root.
Go to “application/config/config.php”
Find below code
1
$config['uri_protocol'] = 'AUTO';
Replace with the below code
1
$config['uri_protocol'] = 'REQUEST_URI';
create .htaccess file and save it from '.htaccess' 

RewriteEngine on
RewriteBase /harshit_ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]



Enjoy It...;)

Comments

  1. Nice One It Is
    Greate Job Harshit Keep it up bro...
    Brijesh patel...

    ReplyDelete
  2. Keep it up Dude ...
    this is very good job
    .....

    ReplyDelete
  3. this blog is help fully for every person and easily get money through bitcoin atm card .please visit this site for bitcoin atm card ranking.you can change any money into another currency in any where in the world.

    ReplyDelete
  4. There is no better idea of keeping your mobile loaded with balance all the time. If you are also looking for any useful way to utilize your top up phone with bitcoin then hurry up and avail our service as much as can. There is no limit of it. Make your mobile life happier with balance recharge through NETELL.NET. COME SOON .THANK YOU .

    ReplyDelete
  5. Here you will find permanent seo solutions to your web project, You can save cost to find more customers online with organic search engine marketing techniques.

    ReplyDelete
  6. https://programmingtutorialsscript.blogspot.com/2021/

    ReplyDelete

Post a Comment

Popular Posts