Commit b19989e2fdea68fcfec59cf284a64f9820533b8d

Authored by Dima
1 parent 933bf05a

delete noindex-follow for page with seo

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/frontend/views/index.php
... ... @@ -8,7 +8,7 @@
8 8 if (preg_match("/page/i", $_SERVER['REQUEST_URI']) && !preg_match("/prof_tips/i", $_SERVER['REQUEST_URI'])) {
9 9 echo "<link rel='canonical' href='http://".$_SERVER['HTTP_HOST'].$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>";
10 10 }
11   - if (preg_match("/sort-/i", $_SERVER['REQUEST_URI'])) {
  11 + if (preg_match("/sort-/i", $_SERVER['REQUEST_URI']) && !isset($seo) && empty($seo)) {
12 12 echo "<meta name=\"robots\" content=\"noindex, follow\"/>";
13 13 }
14 14 ?>
... ...