Skip to content

Commit

Permalink
Merge pull request #9 from DIVD-NL/MrSeccubus-patch-1
Browse files Browse the repository at this point in the history
Fix 404 for entire site and remove custom 404 doc
  • Loading branch information
MrSeccubus authored Jun 12, 2024
2 parents a223db0 + 6f58adf commit cbace4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbace4a

Please sign in to comment.