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

Redirect local media URLs to cdn URLs. #796

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

EarthlingDavey
Copy link
Contributor

A report came in that documents are missing since migration.

This is because documents are linked inside of posts and pages with urls in the format /wp-content/uploads/*

This PR catches these 404s and redirects the request to the CDN, if the requested document/media exists.

@EarthlingDavey EarthlingDavey merged commit c878164 into main Nov 25, 2024
6 checks passed
@EarthlingDavey EarthlingDavey deleted the redirect-wp-content-uploads-to-cdn branch November 25, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants