[英]Website localization when already indexed on search engines
我發現了許多有關如何本地化網站的主題,最常見的解決方案是添加子域或創建不同的子目錄(例如“ / en /”)。 但是,我找不到擔心為最初只針對一種語言進行本地化的網站失去Google索引的擔心。
從現在開始,Google設法將頁面編入索引,如下所示:
http://website.com/threads/this-is-the-title/11111
每當我決定選擇不同子目錄中的本地化時,它將是:
http://website.com/en/threads/this-is-the-title/11111
Google對頁面索引的亂碼會發生什么? 您能幫我找出解決方案來對網站進行本地化而又不會遇到Google問題嗎?
我發現部分解決了問題
Hreflang: https : //support.google.com/webmasters/answer/189077?hl = zh_CN
除了我將在兩個不同文件夾級別上進行本地化之外,這將起作用:
/
...files of already index content
/en
...files of the second language
更新:
當前的htaccess文件:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^threads/(?:([a-zA-Z0-9-_]+\/)?)([0-9]+)$ thread.php?qid=$2 [QSA,L]
...other
我把那條線變成:
RewriteRule ^(?:([a-zA-Z]+\/)?)threads/(?:([a-zA-Z0-9-_]+\/)?)([0-9]+)$ $1/thread.php?qid=$3 [QSA,L]
這還不夠,因為它不會重定向到本地化的子目錄。
使用.htaccess和mod-rewirte 告訴 Google該網址已移至另一個uri
例如
RewriteEngine On
RewriteRule ^oldsite\.html$ /newsite.html [R=301,L]
谷歌適合你
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.