From 6f58adfc58fea855af32eba79721ef15b5b68f34 Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Wed, 12 Jun 2024 07:34:26 +0200 Subject: [PATCH] Fix 404 for entire site and remove custom 404 doc --- deploy/.htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/.htaccess b/deploy/.htaccess index f6d298f..5256d77 100644 --- a/deploy/.htaccess +++ b/deploy/.htaccess @@ -15,14 +15,14 @@ Header set Content-Security-Policy "default-src 'none'; font-src 'self'; img-src Header always set Referrer-Policy "same-origin" # Error document -ErrorDocument 404 /404.html +# ErrorDocument 404 /404.html # Redirect http -> https RewriteCond %{HTTP:X-HTTPS-SESSION} !^yes$ RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,QSA] # Block requests not for divd.club -RewriteCond %{HTTP_HOST} !^www.divd.nl +RewriteCond %{HTTP_HOST} !^www.divd.club RewriteRule (.*) - [r=404] # Handle requests to directories without trailing slash