Zeka Posted January 22, 2020 Share Posted January 22, 2020 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 Link to comment Share on other sites More sharing options...
teppo Posted January 22, 2020 Share Posted January 22, 2020 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). 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now