From 198ac8d6b9853508abbd5e7ba5594c906e6e32f0 Mon Sep 17 00:00:00 2001 From: Igor Aleksandrychev <16775360+aleksandrychev@users.noreply.github.com> Date: Fri, 3 Oct 2025 19:38:19 +0300 Subject: [PATCH] Revert "ENT-11481: Removed web server redirect from http to https (3.24.x)" --- deps-packaging/apache/httpd.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps-packaging/apache/httpd.conf b/deps-packaging/apache/httpd.conf index a28e91d34..3d630983e 100644 --- a/deps-packaging/apache/httpd.conf +++ b/deps-packaging/apache/httpd.conf @@ -251,6 +251,10 @@ AddType application/x-httpd-php-source php RewriteEngine On + # Force https with redirection + RewriteCond %{HTTPS} off + RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + # redirect from `index.php/path` to `/path` RewriteCond %{REQUEST_URI} !(.*)/api/(.*) [NC] #do not apply redirect to internal APIs for backward compatibility RewriteCond %{THE_REQUEST} /index\.php/(.+)\sHTTP [NC]