Articles → PHP CODEIGNITER → Remove Index.Php In Codeigniter

Remove Index.Php In Codeigniter






Index.Php




Picture showing the URL with index.php
Click to Enlarge


Remove Index.Php




  1. Open a notepad.
  2. Write the following code.
  3. RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]


  4. Save the file as ".htaccess" on the root folder.

Output




Picture showing the URL after removing index.php
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, July 29, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250