*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Google Noindex issue
« on: June 24, 2024, 08:53:57 AM »
Hi,

Thanks in Advance.


I think after updating delta theme, this noindex error comes,  Actually I am getting some error by google search console also by other like bing..

noindex issue.

for some pages --

https://ownpetz.com/pets/puppies/ - Indexed

but https://ownpetz.com/pets/puppies/150 - Not Indexed - (showing no index) also when I check source code of this page there is below noindex meta tag... While I have checked in custom.php and head.php there are not these meta name mentioned.. .

<meta name="robots" content="noindex, nofollow" />
    <meta name="googlebot" content="noindex, nofollow" /> 

How to fix this issue ..same error showing for other url like

https://ownpetz.com/electronics/smartwatch/  -  Indexed

https://ownpetz.com/electronics/smartwatch/12  -  Not Indexed


https://ownpetz.com/electronics/earbuds/  - Indexed

https://ownpetz.com/electronics/earbuds/44 -  Not Indexed


and more...


So please tell me how to fix this issue...

Thanks.
« Last Edit: June 24, 2024, 12:56:57 PM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

MB Themes

Re: Google Noindex issue
« Reply #1 on: June 25, 2024, 03:09:46 PM »
It's intentional, check search.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Google Noindex issue
« Reply #2 on: June 26, 2024, 09:42:58 AM »
Thanks for reply,


in search.php I have found this

<?php osc_current_web_theme_path('head.php') ; ?>
  <?php if( osc_count_items() == 0 || Params::getParam('iPage') > 0 || stripos($_SERVER['REQUEST_URI'], 'search') )  { ?>
    <meta name="robots" content="noindex, nofollow" />
    <meta name="googlebot" content="noindex, nofollow" />
  <?php } else { ?>
    <meta name="robots" content="index, follow" />
    <meta name="googlebot" content="index, follow" />
  <?php } ?>


how to change this code..Should I write like this

<?php osc_current_web_theme_path('head.php'); ?>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com