URI routing not working (multilingual)

雨燕双飞 提交于 2019-12-06 07:37:55

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'] = “”
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!