Skip to content
\n

However, this leads to an infinite loop because /category/foo/ redirects to /blog/category/foo/ which redirects to /blog/blog/categories/foo/ and so on.

\n

Is there any way to specify to match only the full path after the hostname? An equivalent in regex would be ^/category/....

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Sure, https://docs.rs/globset/0.4.15/globset/#example-configuring-a-glob-matcher is a good default. Honestly, I overlooked it because the path separator character on Unix-like systems will never be matched by default as far as I can tell. Anyways, PR is welcome.

","upvoteCount":0,"url":"https://github.com/orgs/static-web-server/discussions/498#discussioncomment-11384458"}}}
Discussion options

You must be logged in to vote

Sure, https://docs.rs/globset/0.4.15/globset/#example-configuring-a-glob-matcher is a good default. Honestly, I overlooked it because the path separator character on Unix-like systems will never be matched by default as far as I can tell. Anyways, PR is welcome.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@mschoettle
Comment options

@joseluisq
Comment options

@mschoettle
Comment options

@joseluisq
Comment options

Answer selected by mschoettle
@mschoettle
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested v2 v2 release
2 participants