File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- # IPFS Redirects Parser
1
+ # IPFS ` _redirects ` File Parser
2
2
3
- ** Experimental**
4
- Parser for the IPFS HTTP Gateway's ` _redirects ` file format.
3
+ This is a parser for the IPFS Web Gateway's ` _redirects ` file format.
5
4
6
- Currently this is a subset of Netlify's [ redirects format] ( https://www.netlify.com/docs/redirects/ ) .
7
- The details of the supported functionality are still in flux and will eventually be included in a [ spec] ( https://github.com/ipfs/specs ) .
5
+ ## Specification
6
+
7
+ Follow specification work at https://github.com/ipfs/specs/pull/290
8
8
9
9
## Format
10
10
Currently only supports ` from ` , ` to ` and ` status ` .
@@ -31,8 +31,8 @@ from to [status]
31
31
# Rewrite a path
32
32
/pass-through /index.html 200
33
33
34
- # Show a custom 404 for this path
35
- /ecommerce /store-closed 404
34
+ # Show a custom 404 for everything under this path
35
+ /ecommerce/ * /store-closed 404
36
36
37
37
# Single page app rewrite
38
38
/* /index.html 200
@@ -44,4 +44,4 @@ from to [status]
44
44
---
45
45
46
46
## Credit
47
- This project was forked from [ tj/go-redirects] ( https://github.com/tj/go-redirects ) . Thank you TJ for the initial work. 🙏
47
+ This project was forked from [ tj/go-redirects] ( https://github.com/tj/go-redirects ) . Thank you TJ for the initial work. 🙏
Original file line number Diff line number Diff line change 1
- module github.com/ipfs-shipyard /go-ipfs-redirects
1
+ module github.com/ipfs/go-ipfs-redirects-file
2
2
3
3
go 1.18
4
4
You can’t perform that action at this time.
0 commit comments