Path-preserving redirects from repo-based github pages to new github pages custom domain? #197790
Unanswered
FoxxMD
asked this question in
Other Feature Feedback, Questions, & Ideas
Replies: 2 comments 2 replies
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Pages
Body
I have a website deployed to github pages that does not use a custom domain. Example is
https://username.github.io/my-website.If I update this repo to use a custom domain for GH Pages like
https://mydomain.com, how will github handle links that previously linked to thegithub.io/projectpath? Specifically, does github pages handle redirecting the page in a 1-to-1 manner?For example:
Would
https://username.github.io/my-website/foo/barexactly redirect tohttps://mydomain.com/foo/bar?I could not find an explicit answer to this in the github pages docs or with some basic google-fu. I want to deploy with a custom domain but I don't want to lose all of the SEO and historical links from the gh subdomain.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions