Skip to content

improper redirect & missing file #135

Description

@arhimede

site is live

from the branch live

Now, the problem are:

  1. https://www.dotkernel.com/llms.txt is missing
  2. the below link does not redirect properly
    https://www.dotkernel.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.dotkernel.com%2Fwp-admin%2F&reauth=1

Activity

  1. linked a pull request that will close this issueadd llms file #140on Aug 20, 2026
  2. bidi47 commented on Aug 20, 2026

    @bidi47
    Member

    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

  3. linked a pull request that will close this issueadded trailing slash middleware #148on Aug 20, 2026
  4. linked a pull request that will close this issueenforced trailing slash #149on Aug 20, 2026
  5. arhimede commented on Aug 20, 2026

    @arhimede
    MemberAuthor

    this not solved the problem
    https://new.dotkernel.com/architecture?xxx=3434
    timeout infinite loop

  6. bidi47 commented on Aug 21, 2026

    @bidi47
    Member

    the .htaccess solution in #149 addresses this issue as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions