I'm trying to redirect the users of my website from HTTP to HTTPS.
Redirecting the base url http://www.example.com to https://www.exmaple.com work fine, but http://www.example.com/data is redirected to https//www.example.comdata without the / between .com and data.
My full actual .htaccess is:
# BEGIN WpFastestCache
<IfModule mod_rewrite.c>
<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I also have another rule in my virtualhost configuration:
Redirect / https://www.example.com