SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot thomasr's Avatar
    Join Date
    Apr 2009
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to set a static page to no index/no follow on a wordpress blog.

    I created a static page for link exchanges but I want to set it to noindex/nofollow! How do I do this? This is a self-hosted wordpress blog.

  2. #2
    Non-Member thewebhostingdir's Avatar
    Join Date
    Oct 2005
    Posts
    703
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use rel="external nofollow" attributes in your external hyperlinks.

  3. #3
    SitePoint Member
    Join Date
    Aug 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can nofollow it in your .htaccess file. google it for the tutorial and code.
    http://www.vectorsonfire.com - free cool vectors, download now

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This goes in the <head> section (most likely header.php)
    Code PHP:
    <?php if ( is_page('page_slug') ) { ?>
    <meta name="robots" content="noindex,nofollow" />
    <?php } ?>
    Change "page_slug" to the name of your pages slug.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •