Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
RISHAB-CREATOR authored May 24, 2024
1 parent 3f2eab7 commit 1237312
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
ErrorDocument 404 /404.html
# Prevent looping of 404 error document
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/404.html$
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule . /404.html [L]
</IfModule>

# Custom error document for 404 errors
ErrorDocument 404 /404.html

0 comments on commit 1237312

Please sign in to comment.