I recently developed the mobile version of one of my websites.
As i was working on it, googlebot starting indexing the mobile versions of the pages, which resulted in a lot of duplicate content.
to try to solve this i redirected (302 redirects) all the traffic coming to the mobile version, to the desktop version, in case the user agent is not a mobile phone. this will also redirect the spiders coming to the mobile version to the appropriate, desktop versions of the pages. (i didn't want to mobile website to get indexed just yet...)
what's your opinion on this? did i solve the problem correctly or should i do it differently?
thank you!