我有一个包含数百种产品的电子商务网站。我最近更改了永久链接及其基础。使用 Wordpress 和 Woocommerce 插件,我从 URL 中删除了/shop/%product-category% 。但是,我的旧网址仍然有效。查看以下示例:
greenenvysupply.com/shop/accessories/gro1-1-3mp-usb-led-digital-microscope-10x-300x/ greenenvysupply.com/gro1-1-3mp-usb-led-digital-microscope-10x-300x/
第一个 URL 是旧的。为什么它仍然有效?我不应该得到一个404页面吗?
以下是与规范相关的页面源代码:
href="https://www.greenenvysupply.com/shop/feed/" />
<link rel='canonical' href='https://www.greenenvysupply.com/gro1-1-3mp-usb-led-digital-microscope-10x-300x/' />
<meta name="description" content="The 1.3 Mega-Pixel USB LED Digital Microscope is great for identifying pests and diseases on your plants so you can accurately resolve the problem."/>
<link rel="canonical" href="https://www.greenenvysupply.com/gro1-1-3mp-usb-led-digital-microscope-10x-300x/" />
由于旧 URL 仍处于活动状态且未重定向,因此我的整个网站都被视为具有重复的内容。谷歌抓取工具没有被重定向。为什么即使我更改了固定链接,带有 /shop/ 的 URL 仍然有效?必须有一个简单的解决方法。