Import: redirect the old site's media file addresses (originals and resized copies)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
The work sits in the WordPress importer's media step and the routing layer, where the import's map of old paths is built and where redirect rules are resolved. Start by finding how the import report classifies a missing media file, then add a rule for /wp-content/uploads/ that matches originals and -WxH resized copies against the map. Done means the report counts those addresses as handled and a permanent redirect is returned for each, with unimported files still reported as errors.
Written by the indexing model from the issue text.
Description
After importing a WordPress site with 148 media files, 1,999 of the report's 2,088 errors were the old site's file addresses answering "not found": 115 originals (/wp-content/uploads/2026/04/photo.webp) and 1,884 of WordPress's resized copies (/wp-content/uploads/2026/04/photo-300x200.jpg), each listed as "a file of the media library on the old site answers “not found” here. Bring what it showed, or add a redirect for it in Tools › Redirects."
Those addresses live outside the site's pages: in search engines' image results, in other sites' hotlinks and embeds, in social cards already shared, in RSS readers and in emails. Two thousand redirects can't be added by hand, and while they're errors the report says "Not ready to switch".
Expected:
- every file address of an imported media item answers with a permanent redirect: an original to the item's original, a resized copy (
-WxHbefore the extension, any of WordPress's sizes) to Teme's nearest variant of the same item, or to its original; - one rule for the whole
/wp-content/uploads/folder of the import, resolved from the import's map of old paths, rather than one redirect row per file; - the report counts them as handled ("2,000 old file addresses now redirect"), not as errors;
- a file the import didn't bring (left out, or failed) stays an error, as today.
🤖 Generated with Claude Code
- Dominant language
- PHP
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 40m
- Merged PRs (30d)
- 143
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temecms/teme
-
area/admin type/enhancement when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
area/media type/enhancement when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area/admin type/bug when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
area/import type/documentation when/soon
Difficulty 2/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area/admin area/import type/bug when/later
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Maintainers usually reply within 2 days
-
P2 Team S Type: Infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
google/site-kit-wp#14271 ·
Maintainers usually reply within 2 days
-
Display price Views field throws TypeError when the row has no productPossibly taken @albanycomputers claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
backdrop-contrib/ubercart#610 ·