I have www.example.com which was ranking well for terms related to the site. A few months back i decided to give mobile users some content. i changed the home page to include a php script to determine if the browser is a mobile device or a regular pc and then redirect appropriately.
so now when a user comes to www.example.com they are redirected to either www.example.com/main.htm or www.example.com/mobile.htm based on the users browser.
By doing this, have i killed the ranking of www.example.com since it no longer has any content?
Is there a better way to accomplish what i'm trying to do here?