Solved

How to make only wordpress front page index

Posted on 2013-10-23
5
570 Views
Last Modified: 2013-10-23
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
Comment
Question by:princeservice
  • 3
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 39595316
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
 

Author Comment

by:princeservice
ID: 39595350
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39595365
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
 

Author Closing Comment

by:princeservice
ID: 39595424
Thanks
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39595489
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question