Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

<ul>
    <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>
</ul>
share|improve this question
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 '13 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. –  bybe 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
add comment

1 Answer

up vote 6 down vote accepted
<ul>
    <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>
</ul>

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
add comment

Your Answer

 
discard

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.