Question: why we use htaccess file in codeigniter?
Answer: htaccess file in our project's root directory or CodeIgniter directory. Creating a . htaccess file will allow us to modify our rewrite rules without accessing server configuration files. Because of this reason, .