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 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助