I search certain keywords in desktop google search and mobile version of my website shows up, vise versa.
I use some methods to solve this problem:
- use
<link rel="alternate">
and<link rel="canonical">
to map desktop and mobile version web page respectively. - use 301 redirect instead of 302 redirect when desktop webpage url redirect to mobile webpage url, vise versa.
Are these correct methods to solve this problem? Are there any better idea? Thanks.