I created a brand new folder of cellular model of the theme inside the principle theme, so this new folder (subfolder) comprises variations of footer.php, single.php, header.php, index.php..and so on to load solely on cellular units.
For instance the listing of the theme is MyTheme, and cellular model of recordsdata is within the subdirectory MyTheme/cellular.
If a person visits mysite.com/m area the file index.php contained in the subfolder MyTheme/cellular must be loaded.
The second a part of my query is about the right way to redirect customers of cellular units to the subfolder mysite.com/m