MyBB Community Forums

Full Version: Apllying NOINDEX and NOFOLLOW only once to HEAD (avoid Google harm your host)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just now I was reading this thread from "The Garfield" about generating external links with rel="nofollow", so this is a similar tweak to the same goals - better SEO/Pagerank/...

http://groups.google.com/a/googleproduct..._qq7xGilco

First reply Wrote:To remove a particular page from the search results, you should add the following to the <head> section of a page:

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

Using a nofollow attribute in the above tag will stop search engines following any links on that page to discover any other content on your site.

You cannot use the noindex value in a rel attribute on a link, it doesn't work like that.

---------------

From this, you can edit your templates this way:

Paste this code:
<meta name="robots" content ="noindex">

Before {$headerinclude} in the first template of:

Pages which we don't want to be indexed by google
  1. calendar
  2. edit post
  3. error
  4. member list
  5. new reply
  6. new thread
  7. print thread
  8. report
  9. show forum team
  10. statistics
  11. usercp

-----------------------------------------------------------------------


Paste this code:
<meta name="robots" content ="nofollow">

Before {$headerinclude} in the first template of:

Pages which we want to be indexed but not follow links posted there
  1. Showthread

'Forumdisplay' and 'Index' Templates are good enough to get all links indexed just like a wordpress blog homepage.

And of course, install one of the best wordpress plugins, Google Seo, with 'sitemap' enabled:
- http://community.mybb.com/thread-101262.html
So I should delete what I added from Garfield's thread and do the steps you have posted?
Or you could just use a robots.txt file which is 1000 times easier.
(2012-04-19, 11:09 PM)euantor Wrote: [ -> ]Or you could just use a robots.txt file which is 1000 times easier.

How do I go about doing that? I do have a robots.txt file right now, but there isn't much in it, just this:

User-agent: *
Disallow: /admin/
Allow: /
(2012-04-19, 11:19 PM)Alex C. Wrote: [ -> ]
User-agent: *
Disallow: /admin/
Allow: /

You shouldn't use robots.txt to hide or disallow directories, anyone can see it.
(2012-04-19, 11:25 PM)Solidus Wrote: [ -> ]
(2012-04-19, 11:19 PM)Alex C. Wrote: [ -> ]
User-agent: *
Disallow: /admin/
Allow: /

You shouldn't use robots.txt to hide or disallow directories, anyone can see it.

Ah alright, thanks for the tip.
(2012-04-19, 11:09 PM)euantor Wrote: [ -> ]Or you could just use a robots.txt file which is 1000 times easier.

Check 'Google webmasters tools' you will see the bots don't read your robots.txt every day. So this is more effective to those who submit a sitemap to indexing for the first time. And to remove unwanted indexed content too (memberlist, calendar, etc) => http://support.google.com/webmasters/bin...swer=93708

-------

@Alex C - Both can work together just dont use nofollow part of this thread and use the hacks by 'The Garfield'

(2012-04-19, 11:19 PM)Alex C. Wrote: [ -> ]
User-agent: *
Disallow: /admin/
Allow: /

Your admin url wont never be indexed because only admins can see the links

anyway if you want do prevent hacks => http://www.mybbsecurity.net/topic-renami...-directory
Thanks for this, only just learnt it.