Feature #1183

Create Redirects for Old URLs

Added by Pavan Rikhi about 2 years ago. Updated 19 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Pavan Rikhi% Done:

100%

Category:ServerSpent time:-
Target version:v0.11.0 - Pre-Migration Requirements
Easy Pickings:

Description

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:
  • Categories
  • Products
  • EZ-Pages
  • Quick Order
  • Account Pages
  • Log In
  • Register
  • Advanced Search
  • All/Org/Heirloom/Etc Product Pages(maybe all Search Results?)

Related issues

Precedes SESE Website - Feature #1182: Fix URLs in Descriptions & Pages Rejected

Associated revisions

Revision e57a814b
Added by Pavan Rikhi 19 days ago

[#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.

Closes #1183

History

#1 Updated by Pavan Rikhi 12 months ago

  • Category changed from General to Server

#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.

#3 Updated by Pavan Rikhi 4 months ago

#4 Updated by Pavan Rikhi 21 days ago

  • Target version changed from v1.00.00 - Deployment to v0.11.0 - Pre-Migration Requirements

#5 Updated by Pavan Rikhi 19 days ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Also available in: Atom PDF