Thursday, July 21, 2011

How to Apply SEO Indexing Rules in Wordpress Template

Step 1:

Login to Wordpress Dashboard

Step 2:

Go to Appearance-->Editor --> Header.php

Step 3: Copy the following code:


<?php if ( is_single() ) { ?>

<meta name="robots" content="index"/>

<?php } ?>



<?php if ( is_page() ) { ?>

<meta name="robots" content="noindex"/>

<?php } ?>



<?php if ( is_category() ) { ?>

<meta name="robots" content="noindex"/>

<?php } ?>



<?php if ( is_tag() ) { ?>

<meta name="robots" content="noindex"/>

<?php } ?>



<?php if ( is_search() ) { ?>

<meta name="robots" content="noindex"/>

<?php } ?>


Step 4: Paste it before the head end tag or after the following line-


<head profile="http://gmpg.org/xfn/11">


Step 5: Click on Update the file

Note: Change index/noindex according to your need. This you can apply indexing rule for Search Engines without using any plugin.


Image may be subjected to copyright





0 comments:

Post a Comment