jekyll / jekyll-redirect-from

:twisted_rightwards_arrows: Seamlessly specify multiple redirections URLs for your pages and posts.
MIT License
780 stars 112 forks source link

Automatically redirecting both with and without trailing slash #249

Closed benui-dev closed 1 year ago

benui-dev commented 2 years ago

I have a large number of pages that I would like to redirect. I would prefer to avoid having to specify both with and without trailing-slashes. Is there a way to do this?

My current config looks like this:

redirect_from:
- foo
- foo/
- bar
- bar/
- baz
- baz/

I would prefer it to look like this, and still work for both with and without trailing slashes for users:

redirect_from:
- foo
- bar
- baz
jekyllbot commented 2 years ago

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master/main branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.