I'm running a Wordpress website with Bitnami which confused me a lot of ways.
The issue is when you click a link www.domain.com/ja/ then it goes to www.domain.comja because there is a missing slash /
EDIT: I discovered how it handles www.domain.com/ja without "/" in the last works fine as I expected, otherwise www.domain.com/ja/ with "/" slash it ended up with www.domain.comja
I've tried a lot of ways to solve this issue and still no solution.
Here is my apache2 conf from /opt/bitnami/apps/wordpress/conf/httpd-app.conf
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1/ [R=permanent,L]
RewriteRule ^index\.php$ - [S=1]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]