Php- Remove index.php from url in Codeigniter

Php- Remove index.php from url in Codeigniter

stackofcodes.in

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^/(index\.php|assets/|humans\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]

Leave a Reply

Your email address will not be published. Required fields are marked *