我需要301,将我在旧网站/平台上使用的URL重定向到Shopify上的新网站。
旧网址结构:
https://shop.olddomain.com/path/name-of-page
[我想拥有的是http / https的通配符,因为当Google根据此网站开始对其排名时,该平台将我的网站从不安全状态更改为安全状态。
我还需要/ path / name-of-page的通配符,因为我有数百个具有该结构的URL,而我并不想将每个URL都映射到新URL。基本上,我的目标是确保那些旧的URL不会进入死胡同404,并重定向到新的网站首页。
因此,http /https://shop.olddomain.com/*应该重定向到https://newdomain.com
在.htaccess
中的shop.olddomain.com
位置
Redirect 301 /shopoldpath https://newdomain.com