server – Apache https redirect URL error

I have an Apache website and I set up a redirect so that it will always go to the HTTPS version of the site. I added this under the port 80 Virtualhost configuration:

Redirect permanent /

This works fine as I visit, it is redirected to

But when I visit the site like the trailing slash is removed. So instead of redirecting to it is redirected to https://example.compage.php (which will result to an error).

I am using Ubuntu and the Apache version is: Apache/2.4.29 (Ubuntu)