Solved

How to make only wordpress front page index

Posted on 2013-10-23
5
560 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Heh, easier way:

Do a Google search for site:yoursite.com

That should show you what is in the index
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

A step by step SEO guide to creating content that drives traffic and maximizes page views by using the right tricks, tools and keyword analysis. You are the subject matter expert.   You have forgotten more about your area of expertise than most …
Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now