问题原文
原帖链接 · sajad · CC BY-SA 4.0
I use free hosting and a free site maker. After a while, I added my own domain via DNS settings. I faced a major problem after this. My new pages are not being indexed because Google detects duplicate pages.
I've made two property in Google Search Console with the new domain name and the old one because some links are at the top of search results and now I am afraid that by changing links I lost the position of google search.
已采纳解答
原帖链接 · grg · CC BY-SA 4.0
You need to tell Google that your new domain name is your canonical domain name for the content on the site, otherwise Google won’t index the new domain since it is duplicating content.
You can move to a new domain name by using 301 redirects from each page available on the old domain to the equivalent URL with the new domain. (Implementation of this depends on your web server.)
If you’re not able to set up redirects, or in addition to redirects, set the canonical tag at the top of each page to include the URL of the page using the new domain name.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
