• 24x7 live wp Support

  • Abigail November 17, 2017

    This article helps you to understand how to how to move your wordpress from a subfolder to the root directory.
    This article consists of following topics:

    • Why I need so?
    • How can do it myself without impacting websites?
    • Difficulty level [Easy, Medium, Hard].
    • Total time consumed.
    • Related Plugin or Workaround

    Why i need to do so?

    There are times when you need to create a WordPress site in a subdirectory and not the root directory for the domain it’s hosted on.When you come to make the site live, you don’t want its URL to be wordpress/subdirectory—you want it to be wordpress.com. So you might think you have to manually move the site from its subdirectory to the site’s root directory. You can leave the site exactly where it is and just tell WordPress what you’ve done by making a few changes to settings and minor edits to a couple of files. It just takes five minutes or less.

    To move your wordpress from a subfolder to the root directory follow the steps:

    1:Prepare your WordPress installation for the move
    Prior to physically moving the files, you will need to prepare the installation to accept the new URL name.

    Step1:Log into your WordPress Dashboard. 

    wp login
    Step2:In sidebar menu, go to Setting and click on General.
    url
    Step3: Change the URL of your website (change path if you move it to different folder on same domain name).
    Change WordPress Address(URL) and Site Address (URL)
    Step4: Click on SaveChange Url

    You will get the 404 error page. That’s normal. Proceed with the next step.

    Moving your WordPress from a subfolder to your main folder

    Step1: Login to Cpanal

    Cpanal Login

    Step2:In a  cPanel area,Go to Files  and then click on the File Manager tool.

    File Manager
    Step3: Go to Settings In the Preferences window that appears, select the checkbox entitled Show Hidden Files.And click on save.

    hidden files

    Step4: Refresh your file manager window
    a)Click on folder( you will want to navigate to the folder you have the WordPress site in)
    b)Check the box Select All

    c)Right click on files and click on copycopy
    d)After click on copy a pop-up Window is open . Write your destination path(public_html).
    e) Click on copy files

    destination path
    Step5:This will copy the files up to the public_html folder.
    a)Click on public_html folder. You can see all files copies here.
    copies files
    Step6: Click on old folder which have wp_files
    a)Click on folder(you can see all files also here)
    b)Delete folder
    delete
    3:Log in and finish the URL details

    a)Log into your NEW WordPress admin dashboard.
    b)Go to Administration -> Settings -> Permalinks and ensure the link structure is the same as your new URL.
    new url

    Difficulty Level

    Medium

    Total Time Consumed

    1 hour

    Related Plugins

    No
    Summary
    how to move your WordPress from a subfolder to the root directory?
    Article Name
    how to move your WordPress from a subfolder to the root directory?
    Description
    There are times when you need to create a WordPress site in a subdirectory and not the root directory for the domain it's hosted on.When you come to make the site live, you don't want its URL to be wordpress/subdirectory—you want it to be wordpress.com. So you might think you have to manually move the site from its subdirectory to the site's root directory.
    Author
    Publisher Name
    WordPress Support
    Publisher Logo

    Leave a comment.

    Your email address will not be published. Required fields are marked*

    error: Content is protected !!