{"id":24259,"date":"2009-11-19T00:00:00","date_gmt":"2009-11-19T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/running-desktop-and-mobile-versions-of-your-site\/"},"modified":"2009-11-19T00:00:00","modified_gmt":"2009-11-19T00:00:00","slug":"running-desktop-and-mobile-versions-of-your-site","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/running-desktop-and-mobile-versions-of-your-site\/","title":{"rendered":"Running desktop and mobile versions of your site"},"content":{"rendered":"<p class=\"gargardate\">Thursday, November 19, 2009<\/p>\n<p>\n  <i><br \/>\n    This post was largely translated from our<br \/>\n    <a href=\"https:\/\/developers.google.com\/search\/blog\/2009\/11\/running-desktop-and-mobile-versions-of?hl=ja\">Japanese version of the Webmaster Central Blog<\/a><br \/>\n  <\/i>\n<\/p>\n<p>\n  Recently I introduced several methods to<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/help-google-index-your-mobile-site\/\">ensure your mobile site is properly indexed by Google<\/a>.<br \/>\n  Today I&#8217;d like to share information useful for webmasters who manage both desktop and mobile phone<br \/>\n  versions of a site.\n<\/p>\n<p>\n  One of the most common problems for webmasters who run both mobile and desktop versions of a site<br \/>\n  is that the mobile version of the site appears for users on a desktop computer, or that the<br \/>\n  desktop version of the site appears when someone finds them from a mobile device. In dealing<br \/>\n  with this scenario, here are two viable options:\n<\/p>\n<h2 id=\"redirect-mobile-users-to-the-correct-version\" tabindex=\"-1\">Redirect mobile users to the correct version<\/h2>\n<p>\n  When a mobile user or crawler (like Googlebot-Mobile) accesses the desktop version of a URL, you<br \/>\n  can redirect them to the corresponding mobile version of the same page. Google notices the<br \/>\n  relationship between the two versions of the URL and displays the standard version for searches<br \/>\n  from desktops and the mobile version for mobile searches.\n<\/p>\n<p>\n  If you redirect users, please make sure that the content on the corresponding mobile\/desktop URL<br \/>\n  matches as closely as possible. For example, if you run a shopping site and there&#8217;s an access<br \/>\n  from a mobile phone to a desktop-version URL, make sure that the user is redirected to the mobile<br \/>\n  version of the page for the same product, and not to the home page of the mobile version of the<br \/>\n  site. We occasionally find sites using this kind of redirect in an attempt to boost their search<br \/>\n  rankings, but this practice only results in a negative user experience, and so should be avoided<br \/>\n  at all costs.\n<\/p>\n<p>\n  On the other hand, when there&#8217;s an access to a mobile-version URL from a desktop browser or by our<br \/>\n  web crawler, Googlebot, it&#8217;s not necessary to redirect them to the desktop-version. For instance,<br \/>\n  <a href=\"https:\/\/www.google.com\/m\/\" class=\"external-link\">Google<\/a><br \/>\n  doesn&#8217;t automatically redirect desktop users from their mobile site to their desktop site,<br \/>\n  instead they include a link on the mobile-version page to the desktop version. These links are<br \/>\n  especially helpful when a mobile site doesn&#8217;t provide the full functionality of the desktop<br \/>\n  version&mdash;users can easily navigate to the desktop-version if they prefer.\n<\/p>\n<h2 id=\"switch-content-based-on-user-agent\" tabindex=\"-1\">Switch content based on User-agent<\/h2>\n<p>\n  Some sites have the same URL for both desktop and mobile content, but change their format<br \/>\n  according to <code>User-agent<\/code>. In other words, both mobile users and desktop users access<br \/>\n  the same URL (that is, no redirects), but the content\/format changes slightly according to the<br \/>\n  <code>User-agent<\/code>. In this case, the same URL will appear for both mobile search and desktop<br \/>\n  search, and desktop users can see a desktop version of the content while mobile users can see a<br \/>\n  mobile version of the content.\n<\/p>\n<p>\n  However, note that if you fail to configure your site correctly, your site could be considered to<br \/>\n  be cloaking, which can lead to your site disappearing from our search results.<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/spam-policies\/#cloaking\">Cloaking<\/a><br \/>\n  refers to an attempt to boost search result rankings by serving different content to Googlebot<br \/>\n  than to regular users. This causes problems such as less relevant results (pages appear in search<br \/>\n  results even though their content is actually unrelated to what users see\/want), so we take<br \/>\n  cloaking very seriously.\n<\/p>\n<p>\n  So what does &#8220;the page that the user sees&#8221; mean if you provide both versions with a URL? As I<br \/>\n  mentioned in the<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/help-google-index-your-mobile-site\/\">previous post<\/a>,<br \/>\n  Google uses <code>Googlebot<\/code> for web search and <code>Googlebot-Mobile<\/code> for mobile<br \/>\n  search. To remain within our guidelines, you should serve the same content to Googlebot as a<br \/>\n  typical desktop user would see, and the same content to Googlebot-Mobile as you would to the<br \/>\n  browser on a typical mobile device. It&#8217;s fine if the contents for Googlebot are different from<br \/>\n  the one for Googlebot-Mobile.\n<\/p>\n<p>\n  One example of how you could be unintentionally detected for cloaking is if your site returns a<br \/>\n  message like &#8220;Please access from mobile phones&#8221; to desktop browsers, but then returns a full<br \/>\n  mobile version to both crawlers (so Googlebot receives the mobile version). In this case, the<br \/>\n  page which web search users see (for example, &#8220;Please access from mobile phones&#8221;) is different<br \/>\n  from the page which Googlebot crawls (for example, &#8220;Welcome to my site&#8221;). Again, we detect<br \/>\n  cloaking because we want to serve users the same relevant content that Googlebot or<br \/>\n  Googlebot-Mobile crawled.\n<\/p>\n<p><img decoding=\"async\" alt=\"Diagram of serving content from your mobile-enabled site\" src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-dcf9b6b3333c.png\" loading=\"lazy\"><\/p>\n<p>\n  We&#8217;re working on a daily basis to improve search results and solve problems, but because the<br \/>\n  relationship between PC and mobile versions of a web site can be nuanced, we appreciate the<br \/>\n  cooperation of webmasters. Your help will result in more mobile content being indexed by Google,<br \/>\n  improving the search results provided to users. Thank you for your cooperation in improving the<br \/>\n  mobile search user experience.\n<\/p>\n<p class=\"byline-author\">Posted by Jun Mukai, Software Engineer, Mobile Search Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thursday, November 19, 2009 This post was largely translated from our Japanese version of the Webmaster Central Blog Recently I introduced several methods to ensure your mobile site is properly indexed by Google. Today I&#8217;d like to share information useful for webmasters who manage both desktop and mobile phone versions of a site. One of [&hellip;]<\/p>\n","protected":false},"menu_order":85433,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-24259","ar_kb","type-ar_kb","status-publish","has-post-thumbnail","hentry","ar_kb_kategori-blog"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_kb"}],"version-history":[{"count":0,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24259\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/26753"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=24259"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=24259"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=24259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}