Skip to content

Allow RegExp matching in route-specific headers. - #10

Open
bvanvugt wants to merge 4 commits into
jussi-kalliokoski:masterfrom
bvanvugt:master
Open

Allow RegExp matching in route-specific headers.#10
bvanvugt wants to merge 4 commits into
jussi-kalliokoski:masterfrom
bvanvugt:master

Conversation

@bvanvugt

Copy link
Copy Markdown

In particular, we're using this for relative WebsiteRedirectLocation properties.

@jussi-kalliokoski

Copy link
Copy Markdown
Owner

Sorry for the really long wait time on this, had completely missed it!

What's the use case for this?

@brandonb927

Copy link
Copy Markdown

@jussi-kalliokoski I guess @bvanvugt never checks his notifications haha 😂

I can help out here though! Our use-case is: as part of our deployment process, we have a custom URL structure with Jekyll where we want any URL that matches example.com/path/ to route back to example.com/path with a custom HTML file with a redirect in it.

Does that make sense? Let me know if you need clarification!

@jlev

jlev commented May 17, 2017

Copy link
Copy Markdown

This sounds particularly useful for getting pages to redirect to clean URLs automatically.
IE page.html -> page/index.html

@brandonb927

brandonb927 commented May 17, 2017

Copy link
Copy Markdown

@jlev that is our exact use case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants