What's the best way to redirect mobile site?
-
Hi,
We have a mobile website using a sub-directory domain.com/m/whatever-page/. Our mobile is completely separate site from desktop version.
What's the best way to handle the redirection from mobile visitors and those that are searching from mobile and see desktop version in the search result?
Appreciate anyone's expert advise.
Thanks,
Willy -
I've responded to specific comments below, but here's the information you need to redirect: https://developers.google.com/webmasters/smartphone-sites/details
The gist is, you need:
- 301 or 302 redirects from the desktop site to the mobile site, based on user agent detection
- Rel="canonical" tag on each mobile page pointing to to each desktop page
- Rel="alternate" tag on each desktop page pointing to each mobile page
- A Vary HTTP header
- A mobile sitemap
As I mentioned below, I also recommend that you have a link at the bottom of the mobile and desktop sites pointing to the other version. That way, if you get the redirects wrong, people can self correct.
-
I disagree with Lesley, saying that you should just ask. I would recommend that you redirect to the mobile version of the the site, then ask. Basically: get people onto the page that you're 90% sure they want to be on, but let them switch back and forth. Just add a link to the footer of the deskop and mobile sites letting people switch between the two.
He's correct about redirecting to the right page, though. Don't redirect all of your desktop pages to the mobile homepage. When Google ranks your desktop pages on mobile search results, it checks out the redirect to mobile content. If the mobile content isn't similar, the page won't rank in mobile.
-
The best way to handle redirects is to use a 301 or 302 redirect (this is probably the only time in SEO that either gives the same result) based on user agent detection.
Is that enough detail?
-
Just to add to our original question. It seems pretty clear that device detection is accomplished by user agent detection. Under our original plan to redirect visitors on mobiles to a new URL which carries the mobile version of the page, how should that redirection be accomplished in a search engine compatible fashion? What type of redirection should be used?
I suspect we'll need to continue with our plan to redirect to a different URL for now, but am concerned that this needs to happen in a way which won't harm our SEO.
many thanks in advance for any help with this ....
-
Thanks Leslie, interesting and useful considerations.
-
The best way is to ask. With the ever changing landscape of devices, automatically redirecting is falling out of favor. I would use a cookied little bar at the bottom of the page that asks if they want to view the mobile site. Let them select or close it and have it expire after the session.
One thing to keep in mind, google wants you to redirect to the same mobile page. Like if a user is on site.com/products/nifty-hair-gizmo.html don't redirect them to m.site.com, redirect them to m.site.com/products/nifty-hair-gizmo.html
The reason that automatically redirecting is falling out is because of devices like the new chrome cast and how other phones are set up. I might browse to your site on my phone and be casting it to my 46" lcd and you would never know. But I am going to be irritated if I have to look at your site in a mobile version on my tv.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Ways to Identify Popular Search Terms
Certain searches seem intuitively like they would be popular, but don't appear so in my keyword research on Moz Pro. For example, I am a therapist and would have guessed that a lot of people would be searching for "online therapy California" during this pandemic, but actually those terms are not popular. I looked at Google Trends to see if I could understand this better, but It wasn't very helpful. Any other suggestions for where to get more information when search terms you would expect to be high volume don't appear to be so?
Search Behavior | | LPantell0 -
What is the best way to learn google analytics?
Hi I'm trying to get my head around google analytics as a first time user. Can any suggest the best place to start after I have taken a look through the whole thing, how do I go about managing and tracking performances on my website? eg: Registrations/sign ups, conversions all that sort of thing Some advice will be much appreciated Thanks
Search Behavior | | edward-may0 -
Google smacked my site and dropped all rankings, can't find out why
I have checked out everything, I mean everything. We have no dupe content, our content is a little thin, but it is ours and accurate enough to help our customers.We follow all SEO guidelines and make sure we de-index any pages with no / little content (like privacy, or faq) All in all, we haven't done any major updates to the sites, and everything was great (page one on almost all kw) but beginning of the month, all kw wiped to the second page, than third, than back to one and now pretty much gone (rank 100-200) I really don't know what to do. We didn't receive a manual action, and the last algo update was nothing big to cause such a drastic change. Meanwhile our competition (multiple sites) are gaining in ranks and nothing happened to them (most of them have even less content and not even SSL) Negative SEO is out of question, I check all links via ahrefs every other day. Any help is appreciated Thanks
Search Behavior | | s-s0 -
My satellite website is ranking better than my actual site. Why and what to do?
This is our website: www.sauspiel.de and this is the satellite website. As the satellite site has a better ranking for the keyword "schafkopf" since two or three weeks we wonder how this could happen and what would be best to change it or improve the situation. Shall we take down the satellite site, redirect to the "real" site or try to downgrade? And what would you consider to be the (strongest) reason? Any suggestions? Thanks a lot for your help and assessment!
Search Behavior | | sauspiel0 -
E-commerce SEO when products are shared between sites
We have a couple of e-commerce sites that sell the same product. One focuses more on a niche category of the products, while the others contains a wide variety of products. Will we be hit with a penalty from google if the product descriptions are the same? If so, how much of a difference in content does there need to be? There are only so many ways to describe the product and it is usually done in a couple sentences. The rest of the product description contains bullet points of the products and is the same for each product. We are also looking for a SEO company to work with and wondered if there are companies out there that specialize in e-commerce seo that can work with a small ($500 month) budget. I've looked through the recommended companies directory here, but it seems most have minimum retainers around $1000 a month. Also, what should I look for in an SEO company?
Search Behavior | | toomeycustoms0 -
Is there a site intelligence product that offers data on subdirectories of a competitor site?
Services like Compete and Quantcast provide information on competitive sites, but as far as I can tell only at the aggregated domain level. Is there a similar service (paid or free) that provides this type of data - especially demographics - for a subdirectory? For example, if my competitor has widely different product categories and I suspect that the audience for Product B is very different from his site as a whole (which is mostly focused around his major product, Product A) is there any way to get info on that without actually owning the site and having access to Analytics/Facebook OpenGraph etc.?
Search Behavior | | jliu.blitz0 -
Would you say it is more bennificial to seperate keywords in the title tag tag of a page using a common ( keyword , keyword | Domain.com) or using a hyphen as SEOmoz best practices reccommends (keyword - keyword | domain.com)?
Title tag best practices according to seomoz is the following keyowrd - keyword | brand.com but I have seen some interesting results from using a comma as to a hyphen to seperate keywords as reccomended and wanted to know which method is more crawler friendly.
Search Behavior | | JHSpecialty0 -
What is the best way of tracking direct traffic coming from print ads?
I have numerous print ads running and I would like to see which ads are sending traffic to my site. What is the best way of doing this? Redirects? Is this a recommended practice? Thanks!
Search Behavior | | Lael0