Book Image

WordPress Search Engine Optimization- Second Edition

Book Image

WordPress Search Engine Optimization- Second Edition

Overview of this book

WordPress is a powerful platform for creating feature-rich and attractive websites but, with a little extra tweaking and effort, your WordPress site can dominate search engines and bring thousands of new customers to your business. WordPress Search Engine Optimization will show you the secrets that professional SEO companies use to take websites to the top of search results. You'll take your WordPress site to the next level; you'll brush aside even the stiffest competition with the advanced tutorials in this book.
Table of Contents (19 chapters)
WordPress Search Engine Optimization Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The ultimate WordPress robots.txt file


We learned in Chapter 2, Customizing WordPress for SEO, that WordPress generates archive, tag, comment, and category pages that raise duplicate content issues. We can signal to search engines to ignore these duplicate content pages with a robots.txt file. In this section, we'll kill a few birds with one ultimate robots.txt file. We'll tell search engines to ignore our duplicated pages. We'll go further: we'll instruct search engines not to index our admin area and not to index non-essential folders on our server. As an option, we can also ask bad bots not to index any pages on our site, though they tend to usually do as they wish.

Before we customize our robots.txt file, bear in mind that the WordPress SEO by Yoast plugin can help us accomplish the same goal, but not as reliably. Furthermore, robots.txt is very handy for all sorts of purposes, so it's a great idea to know how to leverage it.

You can create a robots.txt file in any text editor. Place the...