I tried looking at what the Request object was providing to the router. I added this to the top of Router.php:
PHP Code:
$request = \Config\Services::request();
$uri = $request->uri;
echo (string)$request->uri;
The result was
domain.com/~kaimartin/hiperplanner/~kaimartin/hiperplanner
So even though the url in the browser looks right, the trailing segments are being duplicated somewhere by the request class?
I removed the RewriteBase directive from all the .htaccess files with no effect.
Ideas?