Remove Index.php from CodeIgniter URL

Remove Index.php from CodeIgniter URL

Everyone when downloading the CodeIgniter at the first moment he faces the problem of appearing index.php in CodeIgniter URLs.We need to remove index.php from CodeIgniter URL so we will get clean URL for our CodeIgniter application and these URLs now will be user and SEO friendly for search engines.So Today In this tutorial we will learn how we can Remove Index.php from CodeIgniter URL.

To work with the URLs in the .htaccess file mod_rewrite option must be enabled in the apache server.So go to your apache server andhttpd.conf search for the below code.

There will be a # symbol preceding this line remove the # so then mod_rewrite will be enabled.

1-.htaccess Changes

First, check if you have .htaccess in your application if it is not there then create a new one and place this below code in your file.

2-Config File Configuration

Now open your config file in this path application/config/config.php and find the below code.

Now change this code with the below code,it means you will remove the index.php.

Thats it now visit your web application like you will see now there is no index.php.If you still facing problems then you have to change your uri_protocol. Find the below code in your config file.

Now change this code with the below code.

Now restart your apache server and check it will be fix.


So today, In this tutorial we’ve learned how to remove index.php from CodeIgniter URL.Now your CodeIgniter URL will be clean like you have any problem regarding removing index.php in CodeIgniter let us know by commenting here.

Related Search Queries:

how to remove index.php in codeigniter using htaccess,remove index.php codeigniter 3,how to remove index.php from codeigniter url in localhost,htaccess remove index.php from url,codeigniter index.php remove not working,codeigniter htaccess file download,how to remove index php from url in codeigniter in ubuntu,how to remove index.php from url in codeigniter in xampp

See this

CodeIgniter CRUD using Ajax,Bootstrap,Models and MySQL

AngularJS Modules Example

AngularJS PHP MySQL Login Example

 Remove Index.php from CodeIgniter URL

Read previous post:
Remove Public from Laravel URL
Remove Public from Laravel URL

In this tutorial we will learn how to remove public from laravel url.You can use this method for laravel5 and...