Jump to content
Sign in to follow this  
Zeka

PagePathHistory and 140000 URLs

Recommended Posts

Hi

I'm moving quite a large news site from custom CMS to PW. Currently, it has 140000 pages. The current URL structure is like 2020/01/09/slug.html After import to PW all these pages will be under one parent "Archive" and will have new URLs and I'm thinking how better handle this amount of redirects. There is PagePathHistory module in the core with its quite convenient methods like $page->addUrl. But I'm not sure how it will perform with such number of rows.  

What do you think? Maybe there is a better way how to manage it? 

Eugene


 

 

Share this post


Link to post
Share on other sites

Since it's presumably a one time thing, I would at least consider going with Apache rewrites for the old URLs. This should have better performance, and it should also be quite easy to handle.

You might be able to do this with some simple rules assuming that the old slugs are directly converted to ProcessWire page names, and if not, you could set up a RewriteMap file instead (https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html).

  • Like 3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...