Skip to content

Commit

Permalink
fix: 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekCornerGH committed Jun 3, 2024
1 parent a8286f1 commit 5066bba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# 404 Page
ErrorDocument 404 /404.html

0 comments on commit 5066bba

Please sign in to comment.