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 example.com to m.example.com is the best after responsive design but my question is while the desktop URL is example.com/index.aspx and want to redirect to mobile version example.com/index_m.aspx. or example.com/car.aspx to example.com/car_m.aspx. And html and css totally different with desktop version.

Goal:

With a function i detect user-agent and want to redirect from example.com/gallery.aspx to example.com/gallery_m.aspx 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