I want to remove the index.php
from URL in CodeIgniter while using Laragon
I have edited the .htaccess
file in CodeIgniter and applied a rule; I also changed the index_page
variable to empty string in application/config/config.php
.
It, as expected, works completely fine in a web environment setup using WampServer/xampserver
but fails when using Laragon
.
The problem may be with the Laragon environment but I don’t know how to fix it.
How can I make it work in a Laragon environment
? (As Working in Wampserver).
My .htaccess
file contains the following code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /myFolder/index.php/$1 [L]