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

Add legacy URL redirects #294

Open
2 tasks
Kalissaac opened this issue Feb 26, 2022 · 3 comments
Open
2 tasks

Add legacy URL redirects #294

Kalissaac opened this issue Feb 26, 2022 · 3 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@Kalissaac
Copy link
Member

Kalissaac commented Feb 26, 2022

As a result of making a new website, a lot of the old URLs from ocfweb will likely no longer point to what they used to. We will likely need to compile a list of them and then redirect them to their new homes on ocfstatic.

This task can really be split in two parts:

  • Gather a list of URLs that differ from the old website, and what the new URL is (if applicable)
  • Implement the redirects (not sure whether we should do this at the site level or at the proxy level)
@Kalissaac Kalissaac added this to the Release milestone Feb 26, 2022
@Kalissaac Kalissaac added the good first issue Good for newcomers label Mar 5, 2022
@Kalissaac
Copy link
Member Author

We also need to make sure that all our shorturls still work, but that's relatively easy since those can be changed.

@benjitorres
Copy link

Something like this?

[Description] Old => New
"*" = 403
** = 404
[Home] https://www.ocf.berkeley.edu/ => https://new.ocf.berkeley.edu/

[Docs] https://www.ocf.berkeley.edu/docs/ => https://new.ocf.berkeley.edu/docs/
[Docs/FAQ] https://www.ocf.berkeley.edu/docs/faq/ => https://new.ocf.berkeley.edu/docs/faq/
[Docs/Contact] https://www.ocf.berkeley.edu/docs/contact/ => https://new.ocf.berkeley.edu/docs/internal/contact/
[Docs/Staff] https://www.ocf.berkeley.edu/docs/staff/ => https://new.ocf.berkeley.edu/docs/staff/*
[Docs/Privacy] https://www.ocf.berkeley.edu/docs/privacy/ => https://new.ocf.berkeley.edu/docs/privacy**
[Docs/Services] https://www.ocf.berkeley.edu/docs/services/ => https://new.ocf.berkeley.edu/docs/services/*
[Docs/Docs] https://www.ocf.berkeley.edu/docs/docs/ => https://new.ocf.berkeley.edu/docs/docs**
[Docs/Staff/getinvolved] https://www.ocf.berkeley.edu/docs/staff/getinvolved/ => https://new.ocf.berkeley.edu/docs/staff/getinvolved/
[Docs/Staff/Private] https://www.ocf.berkeley.edu/docs/staff/private/ => https://new.ocf.berkeley.edu/docs/staff/private/
[Docs/Staff/Backend/Servers] https://www.ocf.berkeley.edu/docs/staff/backend/servers/ => https://new.ocf.berkeley.edu/docs/staff/backend/servers/**
[Docs/Services/HPC] https://www.ocf.berkeley.edu/docs/services/hpc/ => https://new.ocf.berkeley.edu/docs/services/hpc/
[Docs/Services/Shell] https://www.ocf.berkeley.edu/docs/services/shell/ => https://new.ocf.berkeley.edu/docs/services/shell/
[Docs/Services/Lab/Printing] https://www.ocf.berkeley.edu/docs/services/lab/printing/ => https://new.ocf.berkeley.edu/docs/services/lab/printing/
[Docs/Services/Web] https://www.ocf.berkeley.edu/docs/services/web/ => https://new.ocf.berkeley.edu/docs/services/web/
[Docs/Services/Lab] https://www.ocf.berkeley.edu/docs/services/lab/ => https://new.ocf.berkeley.edu/docs/services/lab/ (hours open need to be updated)
[Docs/Services/Email] https://www.ocf.berkeley.edu/docs/services/mail/ => https://new.ocf.berkeley.edu/docs/services/mail/
[Docs/Services/WebApps] https://www.ocf.berkeley.edu/docs/services/webapps/ => https://new.ocf.berkeley.edu/docs/services/webapps/
[Docs/Account/Password]
https://www.ocf.berkeley.edu/account/password/ => https://new.ocf.berkeley.edu/account/password/
[Docs/Account/Commands] https://www.ocf.berkeley.edu/account/commands/ => https://new.ocf.berkeley.edu/account/comman;ds**
[Docs/About/Officers] https://www.ocf.berkeley.edu/docs/about/officers/ => https://new.ocf.berkeley.edu/docs/about/officers**
[Docs/Internal/Contact/IRC] https://www.ocf.berkeley.edu/docs/contact/irc/ => https://new.ocf.berkeley.edu/docs/internal/contact/irc/

[ShortURL] https://www.ocf.berkeley.edu/docs/staff/tips/shorturl-tbl/ => https://new.ocf.berkeley.edu/shorturls/
[Stats] https://www.ocf.berkeley.edu/stats/ => https://new.ocf.berkeley.edu/stats/
[Staff Hours] https://www.ocf.berkeley.edu/staff-hours => https://new.ocf.berkeley.edu/staff-hours/ (from 2018 lol)

[About] https://www.ocf.berkeley.edu/docs/about/ => https://new.ocf.berkeley.edu/about/
[About/Staff] https://www.ocf.berkeley.edu/about/staff => https://new.ocf.berkeley.edu/about/staff/

[Register] https://www.ocf.berkeley.edu/account/register/ => https://new.ocf.berkeley.edu/account/register (page content)
[Announcements] https://www.ocf.berkeley.edu/announcements/ => https://new.ocf.berkeley.edu/announcements

Status: same for both (https://status.ocf.berkeley.edu/)
Matrix same for both (https://chat.ocf.berkeley.edu/#/welcome)

@Kalissaac
Copy link
Member Author

Oh wow, yeah this is great thank you!

@ben9583 ben9583 changed the title Add legacy URL redirects Add Legacy URL Redirects Sep 26, 2023
@ben9583 ben9583 changed the title Add Legacy URL Redirects Add legacy URL redirects Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants