http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Allow redirects

Open patrickdappollonio opened this issue 1 year ago • 0 comments

Like Netlify, we should support a file called _redirects that should be formatted like this:

/foo/     /foo-bar/                    # redirects any request starting with /foo/ to the same request into /foo-bar/
/baz/     https://example.com/baz/     # redirects `/baz/` into a new domain altogether

patrickdappollonio avatar Sep 18 '24 20:09 patrickdappollonio