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

    I have a few self developed sites using evo, now starting on revo.
    I have a live evo website which i need to redesign.
    I do not use a local server so most of the development is done online.

    usually i made an index.html as a come back soon to block index.php
    but this will not work now that the site is live and should remain so until the new site is approved.

    any tips will be appreciated,
    Thanks!

    This question has been answered by sottwell. See the first response.

    • discuss.answer
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Install your Revo in a subdirectory, and either create a subdomain out of it (revo.mysite.com) using your hosting's control panel, or just access it with a subdirectory (mydomain.com/revo/). I'd recommend using a separate database, but if you can't make sure you use a different table prefix (like revo_ instead of modx_). If you use a subdirectory, you have to edit the .htaccess file to specify the RewriteBase, like RewriteBase /revo/

      Then when it's all good, just rename the Evo's files and top-level folders to assets.evo, index.php.evo, manager.evo, etc. and copy the Revo files and directories down one level. You'll need to edit the config files, or better yet run setup in upgrade mode.
        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
        • 2396
        • 101 Posts
        Do you want to use the existing information in the database or start again? If you want to use the existing info then check here (http://modx.com/learn/modx-college/migrating-from-evo-to-revo/) first.

        I've developed several sites in subdirectories from scratch (not migrating from Evo) and it's pretty much as described by sottwell above but I think it's actually easier.

        Usually you should be able to just run setup in the subdirectory with a new database prefix and it should all go smoothly, as long as you have phpmyadmin access too - you may have to manually create a database with no tables in phpmyadmin first to select during setup depending on the server.

        When the site is finished, back up the old files if you need them, and then remove them, move all files in the subdirectory to the root, update your config files/paths as described here (http://rtfm.modx.com/revolution/2.x/administering-your-site/moving-your-site-to-a-new-server) and it should be good to go! I think the trickiest part is changing the prefix in the 'workspaces' table as described in the above url.

        If you correct the paths in the new sites' config files before you move the subdirectory contents to the root there is zero downtime but I usually tell clients it might take an hour (it never has) and put an index.html file in the root with a site maintenance notice while I move in the new site.

        I went through this process just last week, but actually moved a medium sized site of around 100 pages from a dev account on MODX Cloud (highly recommended - you can get your site working perfectly with no server issues at all) to a subdirectory install on the clients' server to tweak a few things, and then to the root. It all went perfectly.

        I also highly recommend selling MODX Cloud as a new host to clients because all of my Cloud clients's sites run faster than MODX on other servers - although every one of my MODX sites has run faster than previous cms's.

        Also don't forget to set the roots' robots.txt file to exclude the subdirectory while you're developing or you might get a whole lot of half finished pages indexed. I really like this way of developing because you can run all your tests in the final deployment environment. [ed. note: atype last edited this post 12 years, 2 months ago.]
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I like to simply rename the old top-level files and directories, that way if something goes wrong you can very quickly restore the old site by renaming the new ones to something like assets.revo, index.php.revo, core.revo, etc. then rename the old ones to remove the .evo extensions.

          Of course, if you are security-concious and have the core outside of the web root and rename your Revo assets, connectors and manager folders, then you only need to add the .evo suffix to Evo's index.php file.
            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
            • 48381
            • 21 Posts
            Thank you for the quick and elaborate replies!

            I will go through the flow this weekend when downtime is more acceptable if i mix up smiley