`href="/index.php?page=gettingstarted"` should be `href="{$smarty.server.SCRIPT_NAME}?page=gettingstarted"`