: Problem with http to https redirect I have the following .htaccess file (in www.example.com/folder1/folder2) RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
I have the following .htaccess file (in example.com/folder1/folder2)
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) %{HTTP_HOST}%{REQUEST_URI} [R,L]
to map any HTTP request in folder2 to the corresponding HTTPS request.
This all works fine, but if I try to access
www.example.com/folder1/folder2
then I get to a
"This web page is unavailable" ERR_NAME_NOT_RESOLVED error page.
But
www.example.com/folder1/folder2 www.example.com/folder1/folder2/
both work fine (and end up displaying www.example.com/folder1/folder2/index.phtml as expected)
I don't understand why the HTTPS version doesn't work when there is no / at the end of the URL.
Can anyone explain and provide a fix?
More posts by @Gretchen104
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.