Wordpress - 重定向链接结束尾随

My site doesn't work when you try to go to for example www.domain.com/example or wwww.domain/example1/example2 but www.domain.com/example/ and www.domain.com both works. I have tried editing .htaccess file but haven't come with a solution.

Here is my current WordPress default .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I would like to come with a solution that redirects those URLs to URLs with end trailing.

Your .htaccess looks correct - have you tried in a new incognito browser window?