Subfolder installation and multilanguage not working

Hi,

for a client I have to install Kirby in a subfolder. So I’ve set the RewriteBase to /my-subfolder. That’s working.

But when I visit mywebsite.test/my-subfolder/fr, I’m getting a 404 error message. This is my language setup in the config.php:

c::set('languages', array(
    array(
        'code' => 'de',
        'name' => 'Deutsch',
        'default' => true,
        'locale' => 'de_DE',
        'url' => "/"
    ),
    array(
        'code' => 'en',
        'name' => 'English',
        'locale' => 'en_US',
        'url' => "/en"
    ),
    array(
        'code' => 'fr',
        'name' => 'Français',
        'locale' => 'fr_FR',
        'url' => "/fr"
    )
));

It was working before switching to a subfolder setup. Can anybody help me?

EDIT: Oh and I forgot to say that I also can’t visit the panel under mywebsite.test/my-subfolder/panel

Have you tried to set the URL in your config.php?

c::set('url', 'https://yourdomain.com/subfolder');

Thanks @texnixe, but now I found the error. The problem was that I’m using Laravel Valet on my machine, which uses Nginx. So the .htaccess is of no use there :wink: But on the stage server everything is working just fine.