Need to detect the homepage in plain PHP? Start with $_SERVER['REQUEST_URI'], compare the parsed path instead of the raw request string, and normalize subfolder installs so the check survives real production URLs.
A practical guide to CodeIgniter authentication work that matters in live projects: Shield setup, safer password resets, cleaner validation, and lower-maintenance account flows.