how to make subsite

Rising Flight 5,216 Reputation points
2023-11-13T18:32:28.2966667+00:00
Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2023-11-14T02:22:11.48+00:00

    Based on your description, I understand that you want to move a subsite to another site collection in the SharePoint Online.

    Here are steps:

    1.Allow custom script in the site1 and site2 by using PowerShell.

    #Config Parameters
    $AdminSiteURL="https://contoso-admin.sharepoint.com"
    $SiteURL="https://contoso.sharepoint.com/sites/site1" 
      
    #Connect to SharePoint Online Tenant Admin portal
    Connect-SPOService -URL $AdminSiteURL
       
    #sharepoint online enable custom scripts powershell - Disable DenyAddAndCustomizePages Flag
    Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
    

    2.Go to Save as template through this link: https://contoso.sharepoint.com/sites/site1/abc/_layouts/15/savetmpl.aspx -> Include content -> Save.

    1

    3.Go to https://contoso.sharepoint.com/sites/site1 -> Site settings -> Solutions -> Click the abc subsite wsp file to download it.

    4.Go to https://contoso.sharepoint.com/sites/site2 -> Site settings -> Solutions -> Upload solution -> Upload the abc subsite wsp file.

    5.Select the newly upload solution -> Activate it.

    6.Go to https://contoso.sharepoint.com/sites/site2 -> Site contents ->New subsite -> Select a template -> Custom -> Choose abc.
    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.