Answer the question
In order to leave comments, you need to log in
Why does the site give an error when accessing it via https?
Hello!
In general, the crux of the matter. There is a site consisting of a bunch of html-pages, in fact - static. The site did not have an SSL certificate, and when accessing the site via https://<site_address>, in theory, the browser should swear at an insecure connection, but instead the browser says that "Unable to access the site. Could not find Server IP address" - I see this for the first time. What is this magic, and how to defeat it?
In htaccess, redirects are only redirects to from an address without "www" to an address with it, and ".html" is removed at the end of links - normal constructions that should not affect the protocol in any way. Just in case, here is the contents of the file:
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{ENV:HTTPS} on
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ http://www.адрес_сайта.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question