The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Noindex, nofollow for single page - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Noindex, nofollow for single page (/showthread.php?tid=2702) |
Noindex, nofollow for single page - jasiek7 - 2012-02-04 Hi! I am a begginer in GetSimple and I have a first problem. How i can block Google boots on a single page (no entire domain)? I wanto to get <meta name="robots" content="noindex, nofollow"> (or else) in my single page, eg. noindex for mydomain.com/contact? I would like to block a single page for robots only. I don't see this option in GetSimple panel, mabey some plugin or how do it myself? Noindex, nofollow for single page - mvlcek - 2012-02-04 jasiek7 Wrote:Hi! If it's for a single page, the easiest way is to put the following directly into your template's head (Admin Theme/Edit Theme): Code: <?php if (return_page_slug() == 'contact') echo '<meta name="robots" content="noindex, nofollow">'; ?> Noindex, nofollow for single page - Carlos - 2012-02-04 Or you could replace in your template: Code: <meta name="robots" content="index, follow" /> by: Code: <?php if (return_page_slug() == 'contact') { ?> That is, if you also want the rest of the pages to have that meta. Noindex, nofollow for single page - jasiek7 - 2012-02-04 It works perfect. Great! Thanks a lot. Noindex, nofollow for single page - ChriS - 2012-03-14 Thanks to Carlos and n00dles101 I have constructed the following solution with I18N Custom Fields Plugin to have the possibility to change the standard value for every page: In the template: Code: <?php if (return_custom_field('robots') != '') { ?> I18N Custom Field setting in /data/other/customfields.xml (or set it up in Custom Fields configuration) Code: <item> You can control robots also with robots.txt in the (sub)domain root. Noindex, nofollow for single page - ccagle8 - 2012-03-14 this could be developed as a simple yet very useful standalone plugin too. Noindex, nofollow for single page - mikeh - 2012-03-16 ccagle8 Wrote:this could be developed as a simple yet very useful standalone plugin too.Done: MetaRobots Plugin Noindex, nofollow for single page - ChriS - 2012-03-17 Thanks! Nice work mikeh. As I use I18N Custom Fields Plugin already with this template and like to avoid to install many more plugins, I prefer the template solution for now, but nice that the GS-plugin-community is very active and fast. I hope with time "over 2/3 use it plug-ins" crystallized out and are either integrated into the core or are particularly well supported. That would be a great step for GS, because I changed also from WP, because many do not care to update the plugins I used and this is stressing. I have some in my mind; MetaRobots Plugin could evolve/integrate to a "SEO Plugin" or something similar doing some more things and so on. Noindex, nofollow for single page - mikeh - 2012-03-17 ChriS Wrote:Thanks! Nice work mikeh. As I use I18N Custom Fields Plugin already with this template and like to avoid to install many more plugins, I prefer the template solution for now, but nice that the GS-plugin-community is very active and fast. I have been working on a separate "SEO" plugin for quite some time. I should have it released to extend later tonight. I will make it include this feature as well. Noindex, nofollow for single page - igestalten - 2012-05-11 ChriS Wrote:You can control robots also with robots.txt in the (sub)domain root. ...but you can´t prevent sites getting indexed with robots.txt - therefore mikeh´s plugin is a good solution. Even better would be a select field with "index/follow" / "noindex/follow" / "index/nofollow" / "noindex/nofollow" to fully use the seo advantage of the robots meta tag. |