Force Https with Trailing Slash


Hello guys, I’m looking for a redirection rule for force trailing slash as my blog URL is accessible with and without trailing slash. Please help me out if you have the working redirection rule.

I’ve ssl installed on my blog and have force https rule on .htaccess file. How do I add force trailing slash rule so that my blog can be accessed with only one URL format?

I’ve tried using
RewriteEngine on
RewriteCond %{REQUEST_URI} /+[^.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]

Looking for a solution. Thanks in advance.


You might find a solution here: