The mod rewrite is throwing it off. When the url displayed doesn't match the actual path to the file you have to use a <base> tag to tell the ajax what the actual base page is.
I've added that to the index page with:
<base href="http://<?php echo($_SERVER['SERVER_NAME']); ?><?php echo($_SERVER['PHP_SELF']); ?>">
That appears to have fixed the problem.