Mobile app version of vmapp.org
Login or Join
Si4351233

: How to serve 2 different websites according to device-width without affecting SEO? I have one website for desktop that is designed for 1024 width and above. This means that some mobile devices

@Si4351233

Posted in: #ResponsiveWebdesign

I have one website for desktop that is designed for 1024 width and above. This means that some mobile devices in landscape mode will also fit this criteria. I have another website that is designed for below 1024 width, that means the same devices in portrait mode will show this instead.

Although this sounds like conventional responsive design, the 2 versions have very little similarities to tweak. It will be much easier to just do both version from scratch.

What is the way to go for this situation? Must be SEO and robots friendly for at least the PC version.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

2 Comments

Sorted by latest first Latest Oldest Best

 

@Connie744

On the pc web site add meta tag that links to the mobile version like:

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


On the mobile version add meta tag that links to the normal version:

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


See developers.google.com/webmasters/smartphone-sites/details

10% popularity Vote Up Vote Down


 

@Kristi941

In case you have two different CSS files, you can display required one in landscape or portrait mode using css media queries. You can also hide Elements not required in one orientation.
eg:

For Landscape CSS, create css-landscape.css and use this media query:
@media screen and (orientation:landscape) { ... }


similarly for Portrait, create another CSS and use this media query inside:
@media screen and (orientation:portrait) { ... }


For detailed info about CSS Media queries, check here: css-tricks.com/css-media-queries/
Hope this helps.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme