URI routing not working (multilingual) URI routing not working (multilingual) codeigniter codeigniter

URI routing not working (multilingual)


The issue was in the httpd.conf, where "AllowOverride" for public_html (where I had the .htacces file) was set at "None".

I just had to change it to All.

Thanks AchrafSoltani and Grigorash for the try, very appreciated!


Issue: I uploaded the page to my EC2, and when I try to access, almost every page shows the 404 error. Just register page works, but only if I call it via example.com/index.php/admin/register (example.com/admin/register carries the same 404 error).

That means that either the .htaccess is missing not correctly set. By default, code igniter relies on index.php to process all the requests, but since it looks ugly on the URL you should add a .htaccess with the correct parameters to remove it from the url, then open config.php from system/application/config directory and replace :

$config['index_page'] = “index.php” 

to

$config['index_page'] = “”