问题原文
原帖链接 · 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.
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."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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
