Solved

How to make only wordpress front page index

Posted on 2013-10-23
5
565 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

776 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