Force Https with Trailing Slash


#1

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?

https://www.istreamist.com/

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

Looking for a solution. Thanks in advance.


#2

You might find a solution here: https://techjourney.net/add-trailing-slash-to-the-end-of-the-url-with-htaccess-rewrite-rules/