Skip to content

Commit 19aa939

Browse files
Arpith Siromoneyclaude
andcommitted
Remove .html extensions in _redirects for Cloudflare Pages
Cloudflare Pages automatically serves .html files without extension 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent da6c5d6 commit 19aa939

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

static/_redirects

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# Bookmarklet redirect
55
/bookmarklet/js /bookmarklet.js 301
66

7-
# SPA routing - serve HTML files for dynamic routes (order matters!)
8-
/articles/:id/body /article.html 200
9-
/articles/:id /label.html 200
10-
/:user/labels/* /label.html 200
11-
/:user/folders/* /label.html 200
12-
/:user/feeds* /label.html 200
13-
/feeds/* /label.html 200
14-
/:user /user.html 200
7+
# SPA routing - serve HTML files for dynamic routes
8+
/articles/:id/body /article 200
9+
/articles/:id /label 200
10+
/:user/labels/* /label 200
11+
/:user/folders/* /label 200
12+
/:user/feeds* /label 200
13+
/feeds/* /label 200
14+
/:user /user 200

0 commit comments

Comments
 (0)