From 32a23a3e20bb01d592ceac883c0e960d29a67aa2 Mon Sep 17 00:00:00 2001
From: OSPanel <93676052+OSPanel@users.noreply.github.com>
Date: Thu, 25 Apr 2024 19:57:16 +0300
Subject: [PATCH] Create .htaccess
---
system/public_html/default/.htaccess | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 system/public_html/default/.htaccess
diff --git a/system/public_html/default/.htaccess b/system/public_html/default/.htaccess
new file mode 100644
index 000000000..f7edecd11
--- /dev/null
+++ b/system/public_html/default/.htaccess
@@ -0,0 +1,20 @@
+
+ DirectoryIndex index.php index.html
+
+AddDefaultCharset UTF-8
+AddCharset UTF-8 .html
+
+ Header set Cache-Control: "no-cache, no-store"
+ Header unset ETag
+
+Header always set X-Content-Type-Options "nosniff"
+
+RewriteEngine On
+
+RewriteCond %{REQUEST_URI} !^/index\.html$
+RewriteCond %{REQUEST_URI} !^/apacheerror/
+RewriteCond %{REQUEST_URI} !^/apacheicons/
+RewriteCond %{REQUEST_URI} !^/server-status$
+RewriteCond %{REQUEST_URI} !^/server-info$
+RewriteCond %{REQUEST_URI} !^/watch-table$
+RewriteRule . /index.html [L]
\ No newline at end of file