I figured out what you meant by “You should set it up so index.php is not part of the permalink construct.” That fixed everything. So far anyway.