: How to redirect googlebot with mobile user agent to the mobile version, if users are redirected with media query The setup is absolutely so, as Google recommends: www.example.com has a media
The setup is absolutely so, as Google recommends:
example.com has a media query for narrower display sizes and redirects users to m.example.com, if display becomes narrower, as setting. Both versions are tied to each other with alternate<->canonical.
The fun begins with fetching as Google in the search console.
What happens, if you fetch as Google example.com and select a mobile user agent for fetching? Damn right - the googlebot stands on example.com and is not redirected to m.example.com. Why? Because googlebot has no display width!
But the same could happen during the crawling procedure in the wild web: the bot comes with mobile user agent to example.com and gets wrong site version and content, because it isn't redirected properly to m.example.com.
Now the million bucks question: how to redirect gooblebot with mobile user agent, if the general redirect logic isn't based on explizit user agent identification, what is absolutely recommended.
More posts by @Heady270
1 Comments
Sorted by latest first Latest Oldest Best
Hm, I'll take the shot, so we can discuss this little bit more. Interesting question.
I'd do this:
On the desktop page I'd add rel=”alternate” tag pointing to the mobile URL. This will help bot to discover the location of site’s mobile pages.
On the mobile page, I'd add a rel=”canonical” tag pointing to the desktop URL.
If HTTP redirection is difficult to implement, you can alway use JavaScript to redirect users to the URLs pointed to by the link rel="alternate" tag
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.