Depending on how a user gets to your home page and whether you’re rewriting URI’s, REQUEST_URI might differ. For instance, if they only typed something like ‘example.com’ into their browser, the REQUEST_URI might simply be ‘/’. As Rubble suggested, you could print out $requested_url, see what you get and include it in your function, or you could use $_SERVER[‘PHP_SELF’], which gives you the path and filename of the script being executed.