Forum Discussion
Copy or Move Site Page from one site to another
Thanks! This worked great on one of our sites. However, On our main site it did not work. I have Full Control and Admin permissions. I get an access denied error. Do you know if there is anything specific that might be causing this error. Is there anything I need to enable in Admin or Site Settings?
Thanks,
Bren
It could be that you have to allow customization on the the destination site, you can turn that on with powershell:
Connect-SPOService -Url "https://YOURDOMAIN-admin.sharepoint.com" -Credential $userCredential
set-sposite "https://YOURDOMAIN.sharepoint.com/sites/SITENAME" -denyaddandcustomizepages $false
If that doesn't work there is another way to move the sites and other resources, but it only works if you use Internet Explorer and it requires page customization to be allowed.
This is what you do:
1. open IE and navigate to the site where you have the pages/resources you want to move
2. go the the/a document library
3. click on the view options and pick "view in file explorer" (this is only available in the doc libraries, not list or general site content)
4. This will will open the document folder in your local explorer and then you can browse back to the sitepages folder and copy the content there.
5. Repeat 1-4 on the destination site, but instead of copying you paste the pages/resources there. This works for all the site content (list, assets, lirbraries etc.etc.)
The problem with pages sourcing their images and other content to the old site will still persist though....
- Dean ZimmermannApr 09, 2020Copper Contributor
NiclasDahl , I was looking for solutions to move site pages and was already aware of your technique and have used it before. It seems, however, that it no longer works for moving SharePoint site pages when the target is the new hub site and related site pages. I'm now getting a cannot write and it seems the documents won't copy or check in on the target side. Just wanted to post this here because others may try this and run into the same issue. I sure wish we could still do this because I used to just edit the ASPX file and adjust the image URLs to point to the new siteassets folder and it would be successfully moved.