CodeIgniter Laravel PHP Example Javascript jQuery MORE Videos New

How to remove index.php from URL in CodeIgniter using .htaccess


Create a .htaccess file in root folder and add this code.

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    

Before Path :

http://localhost/codeigniter/index.php/Welcome/about

After Path:

http://localhost/codeigniter/Welcome/about