Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use path based redirects #54

Open
SteveRosam opened this issue Mar 23, 2023 · 2 comments
Open

Use path based redirects #54

SteveRosam opened this issue Mar 23, 2023 · 2 comments

Comments

@SteveRosam
Copy link

I would like to redirect from '/this-folder/' to '/another-folder/' or '/to-here/index.html'

@andgineer
Copy link

I think that related to #59

@pawamoy
Copy link
Contributor

pawamoy commented Oct 12, 2024

@SteveRosam do I understand correctly that you're looking for some wildcard feature, to redirect all files within this-folder to the files with same name in another-folder? Or all files within a folder to a single page? In that case I would close this as duplicate of #29.

If you're just trying to create 1:1 redirects, I believe you can do this:

plugins:
- redirects:
    redirect_maps:
      this-folder.md: another-folder.md

To redirect to an existing HTML page, it's tracked in #18.

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

No branches or pull requests

3 participants