pagekit in subdirectory

  • Hi,

    Im trying to setup a pagekit website on uberspace. The pagekit-site is in a subdirectory on a domain (example.com/pagekit). When I try to start the admin-panel with example.com/pagekit/admin I get an error 404. I need to use index.php/admin. In this case all href in the main navigation have an index.php entry.

    Example: example.com/pagekit/index.php/blog.

    Some Modules don't work with the index.php in the url.


    How can I modify my .htaccess to get pagekit working in a subdirectory?

    (edit: partialy solved see my __edit section)


    Apache Version: Apache/2.2.15 (CentOS)

    PHP Version: 7.1.12 @ fast-cgi


    __edit:

    while typing i found a part of the solution


    the htaccess of pagekit needs it's own RewriteBase

    Code
    1. # Set base if your site is running in a VirtualDocumentRoot
    2. RewriteBase /pagekit # for my case

    now I can use example.com/admin and get a correct redirect to the admin-panel


    BUT

    the navigation allready has `index.php/blog` in it´s href. How to solve this