dongsu0308 2014-08-19 18:09
浏览 22
已采纳

地理定位网站仍然使seo正常工作

so i im developping a geolocation system for a project and i have a doubt regarding seo best practices.

i have the same website in 4 languages: pt(portugal), br(brazil), org(international) and dk(Denmark) and for example if a brazilian citizen enters on portuguese website i redirect him to the brazilian one, but i dont know how that will affect the seo of the website, i cant do 301 redirect because by doing that im telling google that the portuguese website no longer exists for him, so how should i redirect to the other website without take it form google indexation?

  • 写回答

1条回答 默认 最新

  • duanlijia5864 2014-08-19 18:28
    关注

    If I understand your question correctly, you basically want to do a soft redirect for user depending on their IP address location.

    You could always have a PHP redirect at the top of the page once you have detected the IP location;

    header("HTTP/1.0 307 Temporary Redirect");
    header("Location: http://www.example.com/");
    

    This will stop the redirect from being seen as permanent.

    You may also want to make sure that you never redirect search engines, you can do this by examining the user agent in the headers.

    $_SERVER['HTTP_USER_AGENT']
    

    Another option would be to have a simple pop-up saying that you have detected a different location/language from the websites and thus giving them the option to redirect to the website with the correct TLD.

    Also make sure you set the lanauage META tags for each website.

    <meta name="language" content="spanish">
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog