Osclass Support Forums

Osclass theme support => Stela Osclass Theme => Topic started by: oneloveb on December 29, 2020, 01:07:59 PM

Title: Index Question
Post by: oneloveb on December 29, 2020, 01:07:59 PM
I want to stop google bot to be crawling on my send to a friends page and im-create-thread as Items crawling


Site.com.ng/item/send-friend/7450
Site.com.ng/im-create-thread/1163


Thanks

Title: Re: Index Qesution
Post by: MB Themes on December 29, 2020, 01:24:05 PM
Page must have noindex noffollow meta attribute or be blocked by robots.txt
Title: Re: Index Question
Post by: oneloveb on December 29, 2020, 01:55:12 PM
Please can I paste this code into item-send-friend.php to stop the crawling

<?php osc_current_web_theme_path('head.php') ; ?>
    <meta name="robots" content="noindex, nofollow" />
    <meta name="googlebot" content="noindex, nofollow" />
  </head>
  <body id="body-custom">
    <?php osc_current_web_theme_path('header.php') ; ?>
    <?php osc_render_file(); ?>
    <?php osc_current_web_theme_path('footer.php') ; ?>
  </body>
Title: Re: Index Qesution
Post by: MB Themes on December 29, 2020, 02:07:20 PM
Only condition is that it must be in head
Title: Re: Index Question
Post by: oneloveb on December 29, 2020, 02:14:34 PM
Thanks
Title: Re: Index Qesution
Post by: oneloveb on December 29, 2020, 02:20:11 PM
I found out the below code already exist on the  item-send-friend.php, so please why the Site.co/item/send-friend/7450 is all over my search console instead of the items

<head>
  <?php osc_current_web_theme_path('head.php') ; ?>
  <meta name="robots" content="noindex, nofollow" />
  <meta name="googlebot" content="noindex, nofollow" />
</head>
Title: Re: Index Question
Post by: oneloveb on December 29, 2020, 03:19:30 PM
Please I am still waiting for your response I want stop page that are not submit in sitemap but index by google
Title: Re: Index Qesution
Post by: MB Themes on December 30, 2020, 03:28:02 PM
If head contains noindex, nofollow, google should not index it. There is anything else that could be done.