Commit 5e27b859c81f9b36faf4d387a6f30e7ee0152e6c
1 parent
80eceeaf
SEO update | canonical
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
src/app/frontend/views/index.php
@@ -4,11 +4,7 @@ | @@ -4,11 +4,7 @@ | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> | 5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> |
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
7 | - <?php /* | ||
8 | - Специальная последовательность \b в шаблоне означает границу слова, | ||
9 | - следовательно, только изолированное вхождение слова 'web' будет соответствовать | ||
10 | - маске, в отличие от "webbing" или "cobweb". | ||
11 | - */ | 7 | + <?php |
12 | if (preg_match("/page/i", $_SERVER['REQUEST_URI'])) { | 8 | if (preg_match("/page/i", $_SERVER['REQUEST_URI'])) { |
13 | echo "<link rel='canonical' href='http://".$_SERVER['HTTP_HOST'].$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>"; | 9 | echo "<link rel='canonical' href='http://".$_SERVER['HTTP_HOST'].$this->seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>"; |
14 | } | 10 | } |