What to send
A CodeIgniter 404 on routes that worked yesterday is almost always a server-routing or configuration problem, not a bug in your controllers. To scope the fix, send:
- The site URL and one URL that fails, plus one that works (often the home page).
- The CodeIgniter version (CI3 or CI4;
system/CodeIgniter.phpshows it) and the PHP version. - Your web server (Apache, Nginx or LiteSpeed) and what changed: a deploy, a host or PHP move, an upgrade from CI3, or a move into a subfolder.
- The newest lines of
writable/logs/log-YYYY-MM-DD.log(CI4) orapplication/logs/(CI3) and the web server error log.
Send your CodeIgniter issue for a written scope and reply within 24 hours. Do not send .env, database passwords or customer data in the public inquiry form.
Common causes
- The web server is not sending requests to the front controller. In CI4 the document root must be the
public/folder, and the rewrite rules live inpublic/.htaccess(Apache) or in an Nginxtry_files $uri $uri/ /index.php$is_args$args;rule. In CI3 the.htaccesssits in the project root next toindex.php. Copying a CI3 layout onto a CI4 site, or the reverse, gives 404 on every route except/. - Apache ignoring .htaccess. If
AllowOverrideisNoneormod_rewriteis disabled after a host move, the rules never run. - A wrong base URL.
app.baseURLin.envorpublic string $baseURLinapp/Config/App.phpthat does not match the live scheme, domain, path or trailing slash breaks routing, redirects and asset links. - Subfolder installs. A CI4 site in a subdirectory can see a different
SCRIPT_NAME, so routes resolve against the wrong path. - Auto-routing is off by default in CI4. A site that relied on CI3-style automatic controller/method URLs returns
PageNotFoundExceptionuntil explicit routes exist inapp/Config/Routes.phpor auto-routing is deliberately enabled. - Case sensitivity. Linux file systems are case-sensitive. A controller file
Orders.phpthat was loaded asorderson a Windows or macOS development machine fails after deploy. - Missing or stale files.
app/Config/Routes.phpnot uploaded, or an old route cache fromphp spark route:cache-style tooling, serves outdated routes. - Index.php in the URL.
indexPageset toindex.phpwith no rewrite support makes clean URLs fail while/index.php/routeworks.
Hosting-side limits, such as a shared plan that does not allow changing the document root, may need a decision from you or the host. The written scope will separate that from code SazM can fix.
Safe checks you can run yourself
- Test the long URL. Open
https://yourdomain/index.php/your-route. If that works while/your-routereturns 404, rewriting is the problem, not your routes. - Confirm the document root. For CI4, the domain must point to the
public/folder. If it points at the project root, move it, or add a root-level rewrite only as a stopgap. - Compare baseURL. Read
app.baseURLin.envagainst the exact live address, includinghttpsand the trailing slash. - Read the log. Look in
writable/logs/forPageNotFoundExceptionand the route it names. A "Can't find a route for" line tells you whether the app or the server rejected the request. - Check case and files. Confirm the controller file name and class name match exactly, and that
app/Config/Routes.phpexists on the server.
If an hour of this does not isolate it, stop editing core files in system/; those edits are overwritten at the next upgrade and can hide the original cause.
Price, delivery and guarantee
Affordable and low-cost does not mean open-ended: one agreed CodeIgniter fix is a $99 fixed price, agreed in writing before work starts, delivered within 48 hours of receiving the required access.
- Fully written. No calls and no project managers.
- Fixed on a staging copy first, then released to production after you approve it.
- The failing routes are tested before and after the change.
- You receive written proof: the root cause, what changed, before/after evidence and a rollback note.
- Money-back guarantee if the agreed root cause cannot be resolved.
A CI3 to CI4 migration or a rewrite is outside the fixed price and receives a separate written quote; see PHP development services. You work directly with Saravana Bhava, a senior developer with 20+ years in production (since Oct 2006), whose portfolio includes CodeIgniter applications.
FAQ
How much does it cost to fix a CodeIgniter 404 error?
The fix is $99 fixed price for the confirmed issue, including root-cause diagnosis, a staging check, the fix, written proof and a rollback note. Typical agency hourly rates are higher and open-ended, while very low marketplace gig prices rarely include root-cause diagnosis, staging tests or a guarantee.
What is the best way to fix CodeIgniter 404 on all routes?
Work out whether the server or the application rejected the request: test /index.php/route, check the document root and rewrite rules, then baseURL and routes. When choosing a CodeIgniter bug-fix service, look for a fixed price, staging first, root-cause explanation, written proof and a guarantee.
Is this a CodeIgniter 3 or 4 problem?
Both. The rewrite file lives in a different place in each version, so the first step is confirming which one you run.
Do I need to give you hosting or SSH access?
Not at first. Start with the URLs, versions and log lines. If access is needed it is scoped and revocable, staging first, and you can rotate credentials afterwards.
Can this be done without calls?
Yes. Scope, questions, approval and delivery all happen in writing.
Next step
Send the failing URL and log lines and get a written fixed-price scope within 24 hours. If the server returns a 502 instead, see the guide WordPress 502 Bad Gateway with Nginx and PHP-FPM, which covers the same server layer. For a database error, see Laravel connection refused.