Classic Pages to Modern Pages migration

Copper Contributor

We have lot of classic wiki pages in the current intranet site. How to migrate these pages to the Modern Site? We have Sharegate tool but that doesn't help in migrating the classic pages. I have activated the publishing features in a Modern Site (for testing), which added wiki page layout to the Site Pages library. Used some powershell scripts to read the content from the classic wiki pages and create new wiki pages in the Modern Site. The wiki page in the modern site is created fine with this method. Is this approach correct? I have seen few articles that Activating Publishing features in modern sites is not supported. Do we need to use only Home and Article page layouts in the modern sites? If that is the case is there any method to migrate the old wiki pages to the modern pages? Thank you!

3 Replies
If you want to migrate your Wiki Pages to modern pages in SPO, you will need:
1) Build your custom migration solution (PowerShell / C# Code)
2) Use the Page Transformation PnP sample as base to build your custom migration solution: https://docs.microsoft.com/en-us/sharepoint/dev/transform/modernize-userinterface-site-pages

Thank you very much for the link. Very useful :).

The code is very helpful to transform the classic pages to modern pages. so convert the classic pages to modern pages in the classic site itself and them migrate to modern site...Is that correct? Thanks once again!

One more Q: Is it true that publishing features should not be activated in Modern Sites even though technically possible?