I have tried almost all possible solutions for getting a trailing slash in my url but somehow it seems to conflict with the rest of my rules RewriteEngine On I am trying to go from example.com/filename to example.com/filename/ ### START WWW & HTTPS # ensure www. RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #Read more