Fix PHP Homepage Redirect Loop

Замовник: AI | Опубліковано: 26.09.2025

My homepage is stuck in a redirect as soon as it’s requested. It happens every time for every visitor, yet the rest of the site works fine when pages are accessed directly. The issue appeared right after I merged some new PHP features, so the culprit is almost certainly in that latest code rather than the server itself. The stack is PHP 8.1 on Apache, Laravel 9 with Blade templates, and a standard .htaccess file handling pretty URLs. I can give you Git access plus a staging environment. What I need from you is simple: • Pinpoint the exact line, file, or configuration causing the unwanted 301/302/307 (or meta/JS) redirect on the root URL. • Apply or suggest the fix and push a clean commit or provide the patched files. • Hand me a short report explaining the root cause and the change so I can replicate it in future deployments. Once the homepage loads normally without looping or jumping somewhere else, the job is done. A quick screen recording or link to the live, fixed page counts as proof. If you’ve untangled PHP or Laravel routing problems before, this should be quick work. I’m ready to grant access right away and would like this wrapped up today.