Skip to content

Commit 149c85e

Browse files
Test _redirects config
1 parent dbecf55 commit 149c85e

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

web/public/_redirects

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1+
# Serve actual files first (if they exist)
2+
# If a file exists with this path, serve it directly
3+
# This must come first
4+
/* /:splat 200!
5+
6+
# Allow pagefind assets to be served as-is
17
/pagefind/* /pagefind/:splat 200
28

3-
/wiki /
4-
/wiki/* /:splat
5-
/Main_Page /
9+
# Rewrite /wiki to /
10+
/wiki /
11+
12+
# Rewrite /wiki/* to root paths
13+
/wiki/* /:splat
614

7-
/bool /boolean
8-
/element /Element
15+
# Aliases for specific pages
16+
/Main_Page /
17+
/bool /boolean
18+
/element /Element
919
/MTA_Classes /Element
1020
/Element/:elementname /:elementname
11-
12-
/Vector/:vectorclass /:vectorclass
13-
14-
/OOP /OOP_Introduction
21+
/Vector/:vectorclass /:vectorclass
22+
/OOP /OOP_Introduction

0 commit comments

Comments
 (0)