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

redirect_to directory preserving relative path #168

Closed TheLQ closed 6 years ago

TheLQ commented 6 years ago

I would like to redirect a subfolder to another domain while keeping the relative path. Essentially I want olddomain.io/project/some/deep/file.html to be redirected to new.com/project/some/deep/file.html by making a single file at olddomain.io/project.md

FWIW I'm trying to preserve links for project with github pages transfered to another user.

redirect_to: http://new.com/project sends http://olddomain.io/project/some/deep/file.html to http://new.com/project

redirect_to: http://new.com/project/ sends http://olddomain.io/project/some/deep/file.html to http://new.com/project/

Wildcards like redirect_to: http://new.com/project/* aren't implemented

As far as I can tell, I should not touch site.baseurl or site.url since olddomain.io is where this site is being served from.

jekyllbot commented 6 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 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.