Google选择了错误的规范网址,认为PHP页面是重复的(可能是因为模板)

时间:2018-07-05 16:06:05

标签: php indexing

我遇到此错误(在下面链接)。 Google选择了错误的规范网址,因为它认为页面是重复的。

Indexing Screenshot Error

说我的两个页面是相同的。这可能是因为我使用的是PHP模板结构(如下)。当然,谷歌应该获取整个页面,而不仅仅是初始的PHP模板?这两个页面都遵循一个类似于以下代码的模板,因此我可以看到,如果不按我的想法获取网站,它们将如何认为它们相同/非常相似。

这是https://www.radventures.co.uk/main/info/grading.php在浏览器执行操作之前的实际外观:

<?PHP
  $articletitle = "Route Grading";
  $articleurl = "grading";
  $title = "The Route Grading System for Radventures";
  $description = "How we grade our walks and scrambles at Radventures. We break down each route into its hardest parts so you know exactly what you're getting yourself into. Learn more here.";
  $ogdescription = "How we grade our walks and scrambles at Radventures.";
  $ogtype = "article";
  $ogurl = "http://www.radventures.co.uk/main/info/" . $articleurl . ".php";
  $ogimage = "http://www.radventures.co.uk/assets/images/fbshare/" . $articleurl . "_fbshare.jpg"; 
  $trailbg = "text";
  $creditdate = "summer 2018";
  $credittype1 = "Words &amp; Photography";
  $credit1 = "scott";
  $credit2 = ""; //if no 2nd credit leave blank else insert name
  $credittype2 = "Photography";

  include ($_SERVER['DOCUMENT_ROOT'] . "/templates/article-template.php");
?>

包含指向另一个模板的链接,依此类推...

我已经阅读了许多Google文档,但没有找到任何线索。我担心如果我在每个页面上仅使用<link rel="canonical">,谷歌仍会认为它们是重复的,因为根本的问题尚未解决。我想念什么吗?

0 个答案:

没有答案