Skip to content

Commit

Permalink
fix: update htaccess to handle archive edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Jun 22, 2024
1 parent 6908e35 commit c9c725a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ErrorDocument 404 /404.html
RewriteEngine on

# if the url has archive, but not index, add index
RewriteCond %{REQUEST_URI} archive
RewriteCond %{REQUEST_URI} !index.html
RewriteRule (.*) /$1/index.html [L]

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*?)/$ /$1.html [L]

Expand Down

0 comments on commit c9c725a

Please sign in to comment.