I have recently setup SSL on my apache server (the server is hosted on DigitalOcean). I have followed the instructions to setup the certificate and edit to the server conf file to redirect http to https. Everything works file but I have a problem when using an http url that includes a file. In that case, the file is appended to the domain name without the / so the browser shows a File not found message (which is correct).
http://www.my-website.com redirects correctly to https://www.my-website.com
however,
http://www.my-website.com/file1.html redirects to https://www.my-website.comfile1.html (the / after the server name is missing)
Can someone tell me what the problem is? The redirection commands in the apache .conf file are as follows:
<VirtualHost *:80>
ServerName my-website.com
Redirect permanent / https://www.my-website.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
</VirtualHost>
Thanks