Add redirects from old /<location>-marquee-hire URLs#38
Merged
Conversation
The old WordPress site used URLs like /aldershot-marquee-hire/ for each location page. Add redirect_from entries to each location page so those URLs no longer 404. Also move location-specific redirects off capri-marquee-hire.html to the appropriate location pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The old WordPress site used URLs like
/aldershot-marquee-hire/for each location page. Those are now 404ing on the new site (location pages live at/Complete-Marquees/<location>/).redirect_from: /<location>-marquee-hireto every page underlocations/(27 pages).capri-marquee-hire.html(/bournemouth-marquee-hire,/basingstoke-marquee-hire,/portsmouth-marquee-hire,/crawley-marquee-hire,/southampton-marquee-hire,/cobham,/oxshott,/leatherhead,/esher, and the malformed/marquee hire surrey) — now they go to the matching location page instead of the gallery page./petersfield-marquee-hireand the non-location redirects (/complete-guide-capri-marquees,/7-tips-decorating-marquee) oncapri-marquee-hire.htmlsince there's no specific destination for those.Test plan
bun run buildsucceeds_site/aldershot-marquee-hire/index.html— emits a redirect to/Complete-Marquees/aldershot/_site/<location>-marquee-hire/index.htmlredirect pages exist/cobham,/oxshott,/leatherhead,/esherredirects still buildhttps://claude.ai/code/session_01K8BxcwJg1vEE1NXzgDfBxz
Generated by Claude Code