1
you might be needing the leading slash on the REQUEST_URI environmental...
-or-
-or-
A cleaner approach would be to assign "page" variable to the smarty instance
in which you can then test
As any additional query string parameters on your index page will cause your very explicit match to fail
{if $smarty.server.REQUEST_URI == '/index.php'}
-or-
{if $smarty.server.REQUEST_URI|strstr:'index.php'}
-or-
{if $smarty.server.REQUEST_URI|strpos:'/index.php' === 0}
A cleaner approach would be to assign "page" variable to the smarty instance
$smarty->assign('page','index');
in which you can then test
{if $page == 'index'}
As any additional query string parameters on your index page will cause your very explicit match to fail