I want to remove the index.php from URL in CodeIgniter in Laragon Environment.
I have edited the .htaccess file in CodeIgniter and applied a rule; it as expected working in a web environment setup using WampServer 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?
@Tufail-uet : Could you please provide more information:
- Is Apache the same?
- What rule you applied?
- What is the error message in Apache's error.log?
- I have Uninstall wamp and then install laragon, so the laragon has it's own apache.
- I have applied all rules which is needed to remove index.php from URL in codeIgniter, like changing in .htaccess code, and changning $config['index_page'] = " " in config.php file.
- I haven't look for the errors, but I don't get error, I want to remove this index.php.
Let me give you example:
a) localhost/ci_testing/index.php/ci_controller => this is working in laragon
b) localhost/ci_testing/ci_controller => this is not working in laragon
While both (a and b) works in Wamp
@Tufail-uet : 1. What I mean is the same version of Apache or not.
I guess Laragon uses a newer Apache version which need proper .htaccess configuration.
@leokhoa I have checked the versions, Both apache version are 2.4.27