<?php if ($_SERVER['REQUEST_URI']=='/'){ ?> Home <?php }else{ ?> <a href="/">Home</a> / page2 <?php }; ?>