Quote from: Stretch at Dec 08, 2010, 05:10 PM
I’d like to hear any suggestions on how to do this in Revolution too.
Is it possible to specify an alternative root page in one of the MODx config files?
Thanks,
Stretch
I’m not sure what you’re trying to do. You can set any page as the root page with the site_start System Setting, but it has to be a MODx document. In order for MODx to work, the index.php file redirects the user to the sit_start MODx document. If it doesn’t, the MODx site won’t work. If it does, the other site won’t work.
There are two common methods for building a MODx site while the other site is still live.
1. Build the site locally using XAMPP or the equivalent and move it all to the remote server when it’s done.
2. Put the MODx install in a subdirectory at the remote site. When it’s finished, either move it to the root, or redirect to it.
Probably the best method combines the two. Build the site locally. When it’s done, move it to the remote subdirectory for testing. When it’s all working, move it to the root or redirect (do this last step when the site is least active).
Generally, moving the site to the root simply involves copying the files, changing the rewrite base line in .htaccess (if using FURLS), and running an upgrade install.
One last tip: regardless of which method above you use, turn off FURLS and rename .htaccess to ht.access as your first step before moving the site. Do the reverse as your last step after everything is working at the new location (rename ht.access to .htaccess and turn on FURLS). It takes a big potential source of confusion out of the picture during the transition.