From 5066bba7744a879315052bae69996092abe3e282 Mon Sep 17 00:00:00 2001 From: GeekCornerGH <45696571+GeekCornerGH@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:28:27 +0200 Subject: [PATCH] fix: 404 page --- static/.htaccess | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/.htaccess b/static/.htaccess index 993a7cd..a42f39d 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -5,10 +5,15 @@ AddOutputFilterByType DEFLATE "application/atom+xml" "application/javascript" "a RedirectMatch 404 /\.git # SECTION END GIT PROTECTION +# No www. RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L] +# Force https RewriteEngine On RewriteCond %{HTTPS} off -RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] \ No newline at end of file +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + +# 404 Page +ErrorDocument 404 /404.html \ No newline at end of file