I want to make the Footer links on my website 'No Follow'. How would I do it on these dynamic PHP links?

    <li><a href="<?=site_url('terms');?>">Terms</a>|</li>
    <li><a href="<?=site_url('privacy');?>">Privacy</a>|</li>
    <li><a href="<?=site_url('disclaimer');?>">Disclaimer</a>|</li>
    <li><a href="<?=site_url('contact');?>">Contact</a></li>
  • 3
    Just for your information, add rel="nofollow" attribute to links to The Terms or Privacy is a bad idea. These pages are important for your website and there is no reason why you don't trust on your own webpages.
    – Zistoloen
    Apr 23, 2013 at 10:51
  • 1
    I agree, bad idea to use nofollow on internal pages generally, its kinda early 2000's when people tried to shape internal PR flow and nowadays Google dislikes this, furthermore nofollow doesn't mean that these pages won't get indexed. Google follows nofollow links one level, and there after it won't index. Apr 23, 2013 at 11:27
  • I was watching an SEOMoz video about footer links and this was their suggestion. I assume it's okay to still add no-follow to save 'link juice' as long as I don't add 'no-index' to them too? Or am I totally wrong here? My most popular pages according to WMT are Terms, Privacy etc which is worrying.
    – Ubique
    Apr 23, 2013 at 15:07
  • The important point is, adding nofollow to a link doesn't save any 'link juice'. This is something Google changed a few years ago to prevent what was called 'page rank sculpting'. nofollow is for links you don't trust, it was created primarily to combat comment spam. So like Zistoloen said, there's no reason to use it on your own links. Apr 23, 2013 at 15:15

1 Answer 1

    <li><a href="<?=site_url('terms');?>" rel="nofollow">Terms</a>|</li>
    <li><a href="<?=site_url('privacy');?>" rel="nofollow">Privacy</a>|</li>
    <li><a href="<?=site_url('disclaimer');?>" rel="nofollow">Disclaimer</a>|</li>
    <li><a href="<?=site_url('contact');?>" rel="nofollow">Contact</a></li>

The fact that the URL is dynamic is irrelevant, as the rel attribute is separate.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.