如何在同一类文件上给出不同的标题描述以避免重复?

时间:2021-02-18 04:18:35

So basically , Google is treating www.example/cz and example.cz/index.php as two duplicates when they have the same meta descriptions ... So example.com/cz and example.com/cz/index should not have the same meta description.

所以基本上,Google将www.example / cz和example.cz/index.php视为具有相同元描述的两个副本...所以example.com/cz和example.com/cz/index不应该有相同的元描述。

How can I assign different meta descriptions to example.com/cz and example.com/cz/index.php , I tried to use $_SERVER['self'] in PHP , but it still returns index.php ... How should I tackle this.

如何为example.com/cz和example.com/cz/index.php指定不同的元描述,我试图在PHP中使用$ _SERVER ['self'],但它仍然返回index.php ...应该如何我解决这个问题。

1 个解决方案

#1


1  

If the same exact content is on both pages, which it seems like might be the case, then it will still be considered duplicate content even if the meta descriptions are unique. I would recommend adding a permanent 301 redirect to the main page. For example:

如果两个页面上都有相同的确切内容(似乎可能是这种情况),那么即使元描述是唯一的,它仍将被视为重复内容。我建议在主页面上添加一个永久的301重定向。例如:

301 redirect example.com/cz/index.php to example.com/cz/

301重定向example.com/cz/index.php到example.com/cz/

This will take care of the duplicate content concerns between the 2 pages.

这将处理2页之间的重复内容问题。

#1


1  

If the same exact content is on both pages, which it seems like might be the case, then it will still be considered duplicate content even if the meta descriptions are unique. I would recommend adding a permanent 301 redirect to the main page. For example:

如果两个页面上都有相同的确切内容(似乎可能是这种情况),那么即使元描述是唯一的,它仍将被视为重复内容。我建议在主页面上添加一个永久的301重定向。例如:

301 redirect example.com/cz/index.php to example.com/cz/

301重定向example.com/cz/index.php到example.com/cz/

This will take care of the duplicate content concerns between the 2 pages.

这将处理2页之间的重复内容问题。