Skip to content

Commit 4946b03

Browse files
committed
chore: rename to ipfs/go-ipfs-redirects-file
1 parent 98d0bad commit 4946b03

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# IPFS Redirects Parser
1+
# IPFS `_redirects` File Parser
22

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.
54

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
88

99
## Format
1010
Currently only supports `from`, `to` and `status`.
@@ -31,8 +31,8 @@ from to [status]
3131
# Rewrite a path
3232
/pass-through /index.html 200
3333

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
3636

3737
# Single page app rewrite
3838
/* /index.html 200
@@ -44,4 +44,4 @@ from to [status]
4444
---
4545

4646
## 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. 🙏

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ipfs-shipyard/go-ipfs-redirects
1+
module github.com/ipfs/go-ipfs-redirects-file
22

33
go 1.18
44

0 commit comments

Comments
 (0)