Create Redirects for Old URLs
|Assignee:||Pavan Rikhi||% Done:|
|Target version:||v0.11.0 - Pre-Migration Requirements|
We'll need to redirect from old urls to our new urls. See if we can use some sort of redirect map with nginx? Have the data migration script spit out whatever we need, since the urls have things like IDs in them.At minimum:
- Quick Order
- Account Pages
- Log In
- Advanced Search
- All/Org/Heirloom/Etc Product Pages(maybe all Search Results?)
[#1183] Add Redirecting API Routes For Migrating URLs
Add a Routes.Redirects module to the API server, containing routes for
Categories, Products, & Pages that take in an ID number and redirect the
user to the appropriate slug-based Client route.
This allows us to set our web server up to redirect pages from the old
website to the new website since the old website's URLs contained the
Category/Product/Page IDs in them.
#2 Updated by Pavan Rikhi 11 months ago
Pavan Rikhi wrote:
Have the data migration script spit out whatever we need, since the urls have things like IDs in them.
Might be better to simply modify the migration script so the IDs of the new rows match the old rows. Then maybe we can redirect them to something like
/api/redirector/categories/<ID> and have that redirect to the proper URL by querying the database for the current slug.