[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 583
  • Last Modified:

How to make only wordpress front page index

So I have made a mistake in not "noindexing" a members site before going live. It's not an issue where information got out but there are a ton of search results that when you click on say you must be a member to read. Anyways, I want to setup the site not to index EXCEPT the front page. I don't want a single page, post, or archive to index. Not now or any created in the future. I would like all post and pages to not index by default. I don't want some plugin that I have to check a checkbox not to index every time. Too much room for error that way.

The way the site is setup right now is the front page has its own php template file. I left it alone. All other pages and posts point to a header template like so:

<?php get_header(); ?>

The header.php file looks like this:

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>

<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="robots" content="noindex">
<title><?php wp_title();?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" href="/wp-content/themes/uneda/reset.css" type="text/css" />
<link rel="stylesheet" href="/wp-content/themes/uneda/style.css" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Oxygen:400,300,700' rel='stylesheet' type='text/css'>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head();?>
</head>

Is this the correct way to handle this? Somewhere I read that once I made the pages and post "noindex" they would be removed from the search after the spiders crawl again. Is there a way to check it?
0
princeservice
Asked:
princeservice
  • 3
  • 2
1 Solution
 
Jason C. LevineNo oneCommented:
Is this the correct way to handle this?  

It's one way to handle it.  Assuming nothing gets messed up or altered in your templates and you have the logic correct you should be okay.  View source on the home page and then on random interior pages (including posts, attachment pages, and custom post types if used) to make sure the meta tag is showing up or not showing up as you desire.  Also, I would do:

<meta name="robots" content="noindex, nofollow">

I know you said you didn't want a plugin but just for the sake of completeness and for others: WordPress SEO by Yoast does allow you to noindex by content type.  You can set the home page to be indexable and then disable all other content types (pages, posts, custom post types, media, tags, categories, etc.) once and that should be the end of it.

Somewhere I read that once I made the pages and post "noindex" they would be removed from the search after the spiders crawl again. Is there a way to check it?

Yes...use Google Webmaster Tools to check the index status of the site.  If you do the noindex/nofollow correctly it should report only one indexed page.  You can also use GWT to manually deindex things (albeit not in a batch) if something truly super-sensitive snuck in.
0
 
princeserviceAuthor Commented:
GWT has me having 31 indexed pages. That is good considering I have over 500 posts/pages. Problem is I can't figure out what 31 pages are indexed. Can you figure that out using GWT?
0
 
Jason C. LevineNo oneCommented:
You would think so, but not real easy to accomplish.

Check the Search Traffic | Search Queries page and then flip it over from Top Queries to Top Pages.  That should show you what Google is serving up.  You can also look at the Internal Links report under the same section.
0
 
princeserviceAuthor Commented:
Thanks
0
 
Jason C. LevineNo oneCommented:
Heh, easier way:

Do a Google search for site:yoursite.com

That should show you what is in the index
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now