We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4429
    • 429 Posts
    Hi,

    I have been developing a site at one location on my server. I now whish to move the site to another location on the same server. Is this just a case of copying it and putting it in the new directory?

    I know there is documentation and many posts but they all talk about moving from a local to live site or switching servers. I just want my site in a different directory. e.g instead of public_html/modx/test to public_html/site_name
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The process will be the same. Move the files and make sure to change the paths in the site configuration, as the articles and tutorials explain. Be sure to clear the cache before moving the files, since you may have some cached pages with links pointing to the old location.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 33982 ☆ A M B ☆
        • 476 Posts
        I have been developing a site at one location on my server. I now whish to move the site to another location on the same server. Is this just a case of copying it and putting it in the new directory?
        Yeh, it’s super easy...just tar/gz or zip your files in that directory it’s in now, move that zipped file to the new directory and unzip it there. Then log in to the Manager area of MODx, go to Tools >> Configuration >> File Manager and for "File Manager Path:", change the path to the new directory. Also click on the "Interface and Features" tab next to the "File Manager" tab and for "Resource Path", change the path there as well. And then you should be good to go.
          Precision Web Development ... SmashStack.com
          • 18367
          • 834 Posts
          Following on from what Ganesh said, If you have panel or shell access you can also do it via the panel admin console.
            Content Creator and Copywriter
            • 4429
            • 429 Posts
            Easy peasy - thanks for the advice, I just cut and pasted the files and then changed the paths in the config.

            thanks