My question is:
I have to my page the main file called index.php which isnt written (obviously) in the Url (http://www.mysite.com)
well.. now i'm developing mobile and i want to separate the file in 3 parts:
index.php (script only)
index-mobile.php (new page)
index-desktop.php (copy of the content of index.php before mobile version)
when the user access my page, firstly I check their user agent in this new index.php to define if they come from mobile or desktop.
after this, in my index.php i just do
<?php include 'index-mobile.php'; ?> if mobile
<?php include 'index-desktop.php';?> if desktop
my question is (for desktop only), is google able to read this index-desktop.php include to my main index.php ?
if yes, does google re-index these index-desktop.php for my desktop version ?
also, would this change affects my current indexed pages for desktop ?
if yes, if i set my server to read first default.php and this default.php be used as script to define where the user comes from and then I include index.php for desktop and index-mobile.php for mobile, would this help ?