Online Forum To Support Coders With Technical Assistance - Read Write Execute

How to remove index.php from url in codeigniter

Ankit Agrawal
Ankit Agrawal
Published on February 3, 2016 · 1 min read

Add a .htaccess file at root and add following code

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article Download table from mysql in .xls without Popup in Php Next Article → Prevent “ERR_CACHE_MISS” of form submission