Rename main.php to index.php so it is called when someone goes to www.joesplace.com
Your code in index.php now checks for existence of the page variable and loads a default main1.php if missing. Otherwise it loads a main#.php file based on page name.
if (!$page) {
include "main1.php";
} else {
include "main$page.php";
}
Pretty simple, hope this is in line with what you were asking, I wasn't following the problem 100%.