Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>
share|improve this question
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 '13 at 10:51
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. – Simon Hayter Apr 23 '13 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 '13 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. – Tim Fountain Apr 23 '13 at 15:15
Okay, thanks to all for the advice. – Ubique Apr 23 '13 at 18:27
up vote 6 down vote accepted
    <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.

share|improve this answer
Thanks for clarifying and posting the solution. Slainte – Ubique Apr 23 '13 at 15:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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