How to force trailing slash

We can use :

⚠️ To be placed at very top of htaccess file

ℹ️ For testing env : replace [L,R=301] by [L,R]

<IfModule mod_rewrite.c>

RewriteCond %{REQUEST_URI} !(/$|\.)

RewriteCond %{REQUEST_URI} !wp-json

RewriteCond %{REQUEST_URI} !wp-admin

RewriteRule ^(.*[^/])$ /$1/ [L,R=301]

</IfModule>

Try if more than one redirection :

RewriteRule ^(.*[^/])$ https://nomdedomaine.com/$1/ [L,R=301]