Default Routing In Codeigniter
One of the most common problem that a beginner faces with codeigniter is the presence of index.php in the URL just before the name of the controller. This makes the URL look odd. Also, whenever developers are trying to form a link during the development of a project, it becomes mandatory for the developer to add index.php in the URL otherwise the application does not work and keeps on providing a 404 Error (Not FOund). So, in order to make the URL of the codeigniter user friendly , we can use .htaccess file. This .htaccess file helps us in changing the default routing behavior of Codeigniter. This .htaccess file contains some line of code which can help us achieve our target and it is placed in the root directory of…