We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7869
    • 118 Posts
    I want to migrate a client’s web site to a MODx CMS, but I don’t want to take his current site down in the process. Can I install MODx in a directory such as http://www.example.com/modx/ for developing and testing and then after the CMS is ready to go live just move the files and folders to the root level? Or must everything stay put once MODx has been installed?
      -Dorian
      • 20289
      • 958 Posts
      sure you can, i just did before wink
      i just simply canged the directory from its installation path to the temporary one and it worked for me.
      just move the folders assets, manager and files ht.access, index.php and index-ajax.php to the root.
      your site should come-up live.
        [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
        [td][Wiki] [Persian support forum]
        [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
        [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        There are a number of articles and tutorials on moving a MODx site. When moving from a subfolder to the root, the only thing is to make sure to change the Configuration settings for the paths and urls needed for file manager and the rich text editor’s resource manager. It can also be a problem if your paths to images in your content are full urls rather than relative (i.e. "http://mysite.com/modx/assets/images/image.png", rather than "assets/images/image.png")
          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
          • 17673
          • 194 Posts

          I have my MODx site inside a /modx directory in the WebServer Root, togheter with many other subdir that must continue to work after I go live with the MODx-driven content.

          Should I move /assets etc to root as described here or should I leave MODx in its own directory and change the Apache HTTP.conf (or .htaccess) to redirect the default web server response in there ??!


          thanks!
            ----------------------------------------------------------
            http://www.linkedin.com/in/lucapost/
            http://www.twitter.com/lukwe/
            ----------------------------------------------------------
            • 20289
            • 958 Posts
            addressing and changing a relative path and urls as mentioned before and moving folders is necessary both togather.
            cause we’r assuming to move all the contents to somewere else like root or whatever.
            but redirecting is another thing!, if you wanto simply redirect visitors from root to desired place dont touch any folder or setting, simply change .htaccess file to address it and thats all!
              [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
              [td][Wiki] [Persian support forum]
              [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
              [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
              • 17673
              • 194 Posts

              Successfully reconfigured the server by:


              • updated HTTPD.conf to point by default to the modx directory
              • created simbolic links from the Modx directory to all other subdirs on the server that must continue to work as before
              • updated the ’Resource URL’ in the Manager->Tools->Configuration
              • no changes in .htaccess (friendly URLs where already active before the switch and they kept working OK)


              ...just an alternative approach,hope it helps someone!
                ----------------------------------------------------------
                http://www.linkedin.com/in/lucapost/
                http://www.twitter.com/lukwe/
                ----------------------------------------------------------