*

amraneo

  • ***
  • 31 posts
[HELP] Two meta robots tags on veronika search pages
« on: July 10, 2017, 01:19:55 PM »

Hi,

Is it normal to have two meta tags on search page when showing source code on the browser ?

     <meta name="robots" content="index, follow" />
     <meta name="googlebot" content="index, follow" />

And :

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


Regards.

*

MB Themes

Re: [HELP] Two meta robots tags on veronika search pages
« Reply #1 on: July 10, 2017, 09:13:17 PM »
@amraneo
Go to:
oc-content/themes/veronika/head.php

Find:
Code: [Select]
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />

Replace with:
Code: [Select]
<?php if( !osc_is_search_page() )  { ?>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ****
  • 200 posts
Re: [HELP] Two meta robots tags on veronika search pages
« Reply #2 on: July 11, 2017, 10:33:34 AM »
@frosticek

I have a query,
let me know,
why u hv putted <?php if( !osc_is_search_page()   ; a condition in header.php


what does it mean!


<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Mon, 01 Jul 1970 00:00:00 GMT" />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    V\S



<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Mon, 01 Jul 1970 00:00:00 GMT" />

<?php if( !osc_is_search_page() )  { ?>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<?php } ?>
Innovation is change that unlocks new value  ;)

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

amraneo

  • ***
  • 31 posts
Re: [HELP] Two meta robots tags on veronika search pages
« Reply #4 on: July 11, 2017, 12:45:25 PM »
@frosticek

If I do this, i will also have noindex, nofollow and index, follow meta tags because of this condition in search.php page :

  <?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 } ?>


This one creates a lot of indexed pages in google, but i guess this condition has to index just categories and regions/cities, not all combinations possibilities of search page !

Regards.
« Last Edit: July 11, 2017, 12:47:28 PM by amraneo »