-1

I want to redirect my mobile site users to mobile specific pages in case the request has been originated from mobile device. I can write below code near HTML Head tag in JS to figure out this.

if(Check UserAgent is Mobile)
{
    mobile=true;
    window.location.assign("http://abc.com"+"&mobile="+mobile);

}

If mobile parameter is available in HTTP params then I can implement certain logic.

Will it cause any issue w.r.t. SEO?

Thanks!

B Chawla
  • 574
  • 1
  • 8
  • 17
  • My problem is very much similar to http://stackoverflow.com/questions/8300480/what-is-the-best-way-to-do-a-mobile-redirect/18640668#18640668 but I need to understand the SEO impact if we use this approach. – B Chawla Sep 06 '13 at 01:13

1 Answers1

1

Search engines will consider your mobile page(s) as duplicate content once the alternative URLs get spread (unless search engines actually do check mobile redirects, in which case it'll consider it duplciate earlier).

Consider responsive design instead of UA sniffing. If you're unable to do so, read into rel=canonical and apply it to your mobile pages.

Nils Kaspersson
  • 8,816
  • 3
  • 29
  • 30