Redirect to mobile version with sub domain

by Mr. x   Last Updated January 06, 2018 10:04 AM

I know redirect a website to mobile version such to is the best after responsive design but my question is while the desktop URL is and want to redirect to mobile version or to And html and css totally different with desktop version.


With a function i detect user-agent and want to redirect from to if device is mobile or etc.

The questions:

  1. Is this good method at all? or harmful for SEO or google index?
  2. If it's okay, which redirect i should use? 301 or 302
  3. Should i use canonical tag?

Related Questions

.htacess mobile redirect stopped working

Updated March 18, 2016 08:01 AM

Old Mobile site redundant now main site is responsive

Updated February 06, 2018 19:04 PM