大网数据广告活动
网站运营与故障问答

Google Sites: 301 Redirect broken links to the home page

· 52CE 我爱测

Several months ago, I migrated my domain from GoDaddy to Google Domains and now use Google Sites. Several broken links from the old GoDaddy webpage highly ranked on Google Search persist. I would like to use a 301 redirect (.htac…

问题原文

原帖链接 · ubuntuquestions · CC BY-SA 4.0

Several months ago, I migrated my domain from GoDaddy to Google Domains and now use Google Sites. Several broken links from the old GoDaddy webpage highly ranked on Google Search persist.

I would like to use a 301 redirect (.htaccess?) to do the following: www.website.example/old-content.html -> website.example

I've spent several hours on the phone with Google and pouring over support articles to no avail.

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

Redirecting pages to the home page won't help SEO. Google reports redirects to the home page as "soft 404" in Google Search Console and treats them the same as 404 errors. Reference: 301 Redirecting All Pages To Home Page Are Seen By Google As Soft 404s

You should instead redirect pages to the new URL where that content lives. If the content no longer exists, it is fine to leave the 404 status. You could also consider resurrecting the content to preserve your SEO.

Unfortunately, Google Sites won't work for this. You will need to migrate to a new host to be able to claim arbitrary URLs and redirect them.

  1. First problem: Google sites doesn't let you have .html. extensions on URLs. When creating a new page you can use the "Advanced" options to create a "Custom path" for the page. However, as soon as you put a . into the path, it says "Invalid path."

  2. Second problem: The new Google Sites doesn't let you redirect pages. The old Google Sites had a "URL Redirector" gadget that you could add to a page. It used to be available under "Insert" > "More gadgets" > "URL Redirector". However, the "More gadgets" option is no longer available and the URL redirect widget is nowhere to be found.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-11-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。