Page MenuHomePhabricator

Redirect techblog.wikimedia.org to diff.wikimedia.org
Open, Needs TriagePublic

Description

We’re starting work on migrating techblog to Diff. Communications about this forthcoming. Both sites are hosted on WordPress VIP. We want to redirect traffic to the subdomain techblog.wikimedia.org to diff.wikimedia.org/techblog

For individual posts on techblog.wikimedia.org we will import those into Diff. We would like to redirect any old requests to individual posts new home on Diff.

For example: https://techblog.wikimedia.org/2019/02/14/perf-matters-at-wikipedia-in-2015/

Would become: https://diff.wikimedia.org/2019/02/14/perf-matters-at-wikipedia-in-2015/

I need help with knowing what the right steps are to request assistance with this change. We’d like to time this switchover with our communication and planning efforts.

(When we setup diff.wikimedia.org back in 2020 we were setting up a redirect on the same WordPress instance. Not sure if that is helpful in this case. See: T254367)

Event Timeline

Hi @CKoerner_WMF: To clarify, this should cover all posts and the domain techblog should redirect to the diff equivalent in its entirety, is that correct?

This then would be similar to the work performed under T254367 as you mentioned, as both domains (techblog and diff) are under VIP. Can you please check that procedure with VIP and let us know if any help is required from our end? Thanks!

Hi @CKoerner_WMF: To clarify, this should cover all posts and the domain techblog should redirect to the diff equivalent in its entirety, is that correct?

This then would be similar to the work performed under T254367 as you mentioned, as both domains (techblog and diff) are under VIP. Can you please check that procedure with VIP and let us know if any help is required from our end? Thanks!

Yes, we'd want all post and the domain to retired to the diff equivalent in its entirety.

Once difference in this migration is that we're hoping to remove techblog from our hosting at VIP. When I asked VIP about this they gave me instructions on how to keep things running there (naturally) :)

"Using a redirect in vip-config.php is the right approach for preserving the full request path, such as redirecting https://techblog.wikimedia.org/2025/05/12/promoting-events-and-wikiprojects/ to https://diff.wikimedia.org/2025/05/12/promoting-events-and-wikiprojects

However, that redirect will only continue to work as long as techblog.wikimedia.org remains attached to a VIP environment, is verified there, and continues pointing to VIP via DNS. If the old site is fully removed from VIP and the domain is no longer routed to a VIP environment, the redirect logic in vip-config.php would no longer run.

Because of that, the recommended setup is usually to keep techblog.wikimedia.org active as a secondary domain on a VIP environment that will remain in place, and configure the redirect there. That allows you to sunset the old site itself while still preserving redirects from the old domain. "

Hi @CKoerner_WMF: To clarify, this should cover all posts and the domain techblog should redirect to the diff equivalent in its entirety, is that correct?

This then would be similar to the work performed under T254367 as you mentioned, as both domains (techblog and diff) are under VIP. Can you please check that procedure with VIP and let us know if any help is required from our end? Thanks!

Yes, we'd want all post and the domain to retired to the diff equivalent in its entirety.

Once difference in this migration is that we're hoping to remove techblog from our hosting at VIP. When I asked VIP about this they gave me instructions on how to keep things running there (naturally) :)

"Using a redirect in vip-config.php is the right approach for preserving the full request path, such as redirecting https://techblog.wikimedia.org/2025/05/12/promoting-events-and-wikiprojects/ to https://diff.wikimedia.org/2025/05/12/promoting-events-and-wikiprojects

Thanks for the explanation. That sounds good -- we will still keep the DNS around so that the requests continue to go through and then VIP can take care of the redirection on their end. There isn't much for us to do here but let us know how we can help.