Skip to content

Add javascript to 404 page that redirects all /live/... urls to the playtorch.dev website #1084

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

Merged
merged 4 commits into from
Jul 22, 2022

Conversation

justinhaaheim
Copy link
Contributor

Now that PyTorch Live has been renamed to PlayTorch and has moved to playtorch.dev we want to redirect all traffic to pytorch.org/live/... to the new site. This script will check the url when a 404 is sent, and if the path begins with /live/{something} will redirect to https://playtorch.dev/{something}.

This script is based off of the 404 script at https://github.com/facebook/facebook.github.io/blob/master/404.html

@netlify
Copy link

netlify bot commented Jul 22, 2022

👷 Deploy Preview for pytorch-dot-org-preview processing.

Name Link
🔨 Latest commit 73a7993
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-dot-org-preview/deploys/62daf0834c761100090ae6be

@justinhaaheim justinhaaheim merged commit 9394e63 into site Jul 22, 2022
@malfet malfet deleted the add-redirect-for-pytorch-live-urls branch October 23, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants