You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for issue 2 above
the infinite redirect is caused by one of two routes in src/App/src/RoutesDelegator.php
$app->get('/{first}', function ($request) {
$uri = $request->getUri();
return new RedirectResponse((string) $uri . '/', 301);
});
$app->get('/{first}/{second}', function ($request) {
$uri = $request->getUri();
return new RedirectResponse((string) $uri . '/', 301);
});
the initial purpose for these routes was to add the trailing slash for urls
e.g. from https://new.dotkernel.com/blog to https://new.dotkernel.com/blog/
but urls with query like wp-login.php?redirect_to=https%3A%2F%2Fwww.dotkernel.com%2Fwp-admin%2F&reauth=1 caused the infinite redirect
this new route in the linked PR did not fix the issue
$app->get('/{wpPath:wp-.*}', function () {
return new RedirectResponse('/', 301);
});
i removed the routes above and offered two solutions in #148
the code has the middleware and a comment has the .htaccess alternative
Activity
bidi47 commentedon Aug 20, 2026
for issue 2 above
the infinite redirect is caused by one of two routes in
src/App/src/RoutesDelegator.phpthe initial purpose for these routes was to add the trailing slash for urls
e.g. from
https://new.dotkernel.com/blogtohttps://new.dotkernel.com/blog/but urls with query like
wp-login.php?redirect_to=https%3A%2F%2Fwww.dotkernel.com%2Fwp-admin%2F&reauth=1caused the infinite redirectthis new route in the linked PR did not fix the issue
i removed the routes above and offered two solutions in #148
the code has the middleware and a comment has the
.htaccessalternativearhimede commentedon Aug 20, 2026
this not solved the problem
https://new.dotkernel.com/architecture?xxx=3434
timeout infinite loop
bidi47 commentedon Aug 21, 2026
the
.htaccesssolution in #149 addresses this issue as well