CodeIgniter Forums
How to resolve CodeIgniter 404 error? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18)
+--- Thread: How to resolve CodeIgniter 404 error? (/showthread.php?tid=87803)



How to resolve CodeIgniter 404 error? - JayasSarea - 06-01-2023

How can I resolve the 404 error when trying to access certain pages in CodeIgniter 2.x while using Quercus on Tomcat?

I have installed Quercus in the "webapps/ROOT" directory and CodeIgniter in "webapps/ROOT/appname". I can access "index.php" in "webapps/ROOT/appname", but when I try to access "ROOT/appname/index.php/login/login" or "ROOT/appname/welcome", I encounter 404 errors.

I have used the URLRewriterFilter to replace the .htaccess file, but it doesn't seem to be working. Below is my "urlrewrite.xml" configuration:

<urlrewrite>
  <rule>
    <name>Generic Pretty URLs Pass-through</name>
    <condition type="request-uri" operator="notequal">^/(robots.txt|osd.xml|flex2gateway|cfide|cfformgateway|railo-context|admin-context|files|images|jrunscripts|javascripts|miscellaneous|stylesheets)</condition>
    <condition type="request-uri" operator="notequal">\.(bmp|gif|jpe?g|png|css|js|txt|xls|ico|swf|woff|ttf|otf)$</condition>
bash

    <condition type="request-filename" operator="notdir"/>
    <condition type="request-filename" operator="notfile"/>

    <from>(.*)</from>
    <to type="passthrough" last="true">index.php/$1</to>
  </rule>
</urlrewrite>
I'm seeking assistance in resolving this issue and any guidance on correctly configuring the URL rewriting with Quercus and CodeIgniter on Tomcat.lay the last updated date in the desired UK format with the specified font and font color.