Некоторое время назад я получил SSL-защиту своего сайта, и когда я пытаюсь запустить код для перенаправления с http на https, он просто падает. Это говорит о том, что соединение сброшено. Я понятия не имею, что я сделал не так. Пожалуйста, помогите.
Вот мой htaccess код
ErrorDocument 400 http://https://infinityfree.net/errors/400/ ErrorDocument 401 http://https://infinityfree.net/errors/401/ ErrorDocument 403 http://https://infinityfree.net/errors/403/ ErrorDocument 404 https://christiansheehan.com/404idiot ErrorDocument 503 http://https://infinityfree.net/errors/503/ DirectoryIndex index.php index.html index.htm index2.html # Below this is the .html ending remover thing RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [NC,L] # Below this is the http to https redirect code RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.christiansheehan.com/$1 [R,L]