Couldn’t get this working when the home url differed to the site url. When non-members tried to login (like the site admins), they were redirected to the WordPress folder url and received a “page not found” error.
This seems to be because site_url has been used in a number of the redirect and cookie statements.
In the pilotpress.php file I modified certain instances of site_url to home_url.
Changes as follows:
Line 1350:
$cookie_domain = str_replace($this->get_protocol(),"",home_url());
Line 1395:
wp_redirect(home_url());
Line 1405:
wp_redirect(home_url());
Line 1436:
Changed the site_url function to include the path in the function call, not append it to the returned valued:
wp_redirect(site_url("/wp-login.php?checkemail=confirm"));
Line 1460:
wp_redirect(home_url());
Line 1606:
wp_redirect(home_url());
Line 1999:
$redirect = home_url($_SERVER['REQUEST_URI']);
Still testing but the problem seems to have disappeared.