Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

December 9, 2012

No Comments


Remove index.php from URL in CodeIgniter

I am working with CodeIgniter Framework since last 3 months. I have worked on CakePHP and Zend Framework before. But when I setup CodeIgniter, I was trying to access it but I was not able. Later, I came to know, it is including index.php in url. I wrote a couple of lines in .htaccess to remove index.php from CodeIgniter.

December 24, 2009



How to remove index.php from url using .htaccess (mod_rewrite)

For better SEO optimization and make urls more search engine friendly , remove index.php from URL and make it easier to read. This can be done by writing only two lines in your .htaccess(mod_rewrite in apache) file. Before writing this rule in .htaccess , make sure that your mod_rewrite is enabled(On) in your apache server.