WORDPRESS TIPS AND TRICKS

I use WordPress 2.1 with the theme : WordPress Default 1.6 by Michael Heilemann aka KUBRICK but i would think most tips work with older and newer versions. (v1.5 to v2.2+) and other themes.


———————————————–

STOP GOOGLE FROM INDEXING FEED PAGES

If you search in Google; site:yoursite.com you will see all the pages that google has indexed from your site. WordPress automaticly creates an RSS feed for each and every page, post, etc. I don’t really see why it’s done this way but anywho. If you notice in your SERP that some of the pages urls include the /feed/ , then Google has indexed the feed for your post and not the direct link to your post. This is an error and should be fixed to optimize your SERPS and SEO.


The trick is to use the robots.txt file in your webserver’s directory. This file tells the search engines what they SHOULD and SHOULD NOT index.

Copy the code below, paste it into a txt file called “robots.txt” and upload it to your root directory.

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /archives
Disallow: /page
Disallow: /page/*
Disallow: /comments
Disallow: /category/*/*
Disallow: */trackback
Disallow: */feed
Disallow: */comments
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploads

# Google Image
User-agent: Googlebot-Image
Disallow:
Allow: /*

# Google AdSense
User-agent: Mediapartners-Google*
Disallow:
Allow: /*

Sitemap: https://www.xarj.net/sitemap.xml

You should have a sitemap for your blog and you can tell all search engines about it from the robots.txt file.

—————————————-

MORE WORDPRESS TIPS AND TRICKS ::

Monetize your WordPress Blog
AVOID DUPLICATE CONTENT TO HELP YOUR GOOGLE SERPS

ADD THE SIDEBAR IN SINGLE AND ARCHIVE POSTS FOR KUBRICK THEME

Related Images: