Mobile app version of vmapp.org
Login or Join
Shelley277

: How to tell google to direct mobile searches to the proper url I have created a mobile version for each page of my website and I also try to detect mobiles from the Agent string. But for

@Shelley277

Posted in: #CanonicalUrl #Google #GoogleSearch #GoogleSearchConsole #Mobile

I have created a mobile version for each page of my website and I also try to detect mobiles from the Agent string. But for cases that I fail to properly detect a mobile, the user can force the mobile version by adding a get parameter (like ?mobile=1).

I checked the behavior of google by checking it with an old mobile. Of course google knew that it was a mobile and displayed the mobile version of its page. But the url that it used to redirect to my website was without the get parameter(?mobile=1) so it went to the standard version (And my website did not detect the user as mobile, then displayed the standard version.)

How can I solve this problem? I found nothing in Webmasters Tools to notify google of mobile version parameter.

In Short, I want to see if google can halp me to detect mobile phones by displaying the url of the mobile version of the page in its search results (for the visitors who it detects as mobile)?

Thank you very much

P.S.

I have used this tag in each page to indicate that the mobile version and standard one are the same. Is it right to do so? Does this tag prevents google to display mobile version urls in search results?

<link rel="canonical" href="Standard/Version/of/URL">

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jennifer507

Instead of using just the canonical tag on both pages, use the annotations for desktop and mobile URLs.

On the desktop page, add:

<link rel="alternate" media="only screen and (max-width: 640px)"
href="http://example.com/?mobile=1" >


and on the mobile page, add the canonical tag:

<link rel="canonical" href="http://www.example.com/" >


These tags can also be defined in sitemaps rather than in the source code and are set on a apeg level, not a site level.

More info here Building Smartphone-Optimized Website

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme