From 8d0dd8aae920c685b33714f65e9a9261487e1bcc Mon Sep 17 00:00:00 2001 From: Kasper Nowak <54978466+kaspernowak@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:42:11 +0200 Subject: [PATCH] .htaccess support for OpenLiteSpeed webservers. The current rewrite rules existing in the created .htaccess files are only supported for Apache webservers, and leaves files exposed on OpenLiteSpeed webservers by default. This is the easiest way to add support for OpenLiteSpeed 1.4.38+. --- CRM/Utils/File.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 977b9fc836..c2299ec490 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -531,6 +531,11 @@ class CRM_Utils_File { if (!empty($dir) && is_dir($dir)) { $htaccess = << +# OpenLiteSpeed 1.4.38+ + + RewriteRule .* - [F,L] + + # Apache 2.2 Order allow,deny -- 2.25.1