There is one small problem. Here is what happens:
I first open my broswer, and go to the login screen.
I login as administrator, or guest or a teacher, or whomever.
Then after it verifies my information, it redirects me to http://www-p.mydomain.com/moodle.
However in my config.php file, the following is set correctly:
$CFG->wwwroot = 'http://www.mydomain.com/moodle';
Why would the script be referencing www-p ??? Is this a problem with the scripts?
Thanks so much for your response Martin. Yes, you are right (of course!). The problem was internal with our server. Internally, the server uses the www-p.mydomain.com for redirects. They must have had something configured incorrectly but they have fixed it.