Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to make only wordpress front page index

Posted on 2013-10-23
5
Medium Priority
?
577 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

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

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…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
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…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

715 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