jussi-kalliokoski / gulp-awspublish-router

A router for defining file-specific rules with gulp-awspublish
29 stars 7 forks source link

Allow RegExp matching in route-specific headers. #10

Open bvanvugt opened 9 years ago

bvanvugt commented 9 years ago

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

jussi-kalliokoski commented 8 years ago

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

What's the use case for this?

brandonb927 commented 8 years ago

@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 commented 7 years ago

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

brandonb927 commented 7 years ago

@jlev that is our exact use case!