Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8905667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:27:08+00:00 2026-06-15T02:27:08+00:00

I have an MODX site running on the shared server in the root folder

  • 0

I have an MODX site running on the shared server in the root folder (i.e. public/www/).
I also have an MODX testing site running in the subfolder (public/www/modxtest).

I want to move this testing site into the root in a way that the modx site in root folder is not affectetd until the end of migration.

I haven’t touched MODX before and do not know the migration procedure.

One way of doing that may be using htaccess file and redirect the request to the root MODX site to the subfolder MODX site as in https://my.bluehost.com/cgi/help/347

This method might get confusing for other person as they wouldn’t know this redirection happening and might happen to delete the subdirectory as prefixed ‘test’.

What could be the better and reliable way for complete migration from subfolder to the root folder?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:27:10+00:00Added an answer on June 15, 2026 at 2:27 am

    You don’t specify which version of Modx you are using, but I assume it is Revo.

    Moving a Revo-site can be difficult, but I’ve done it several times, so I’ve made a simple list over things that I have to do.

    1. Move all the files to the right directory.
    2. Open config.core.php in the modx-root. Enter your new path here
    3. Open core/config/config.inc.php and change all the paths and relative urls to match your new folder/url.
    4. Upload the setup-folder to your modx-root. If you don’t have this folder, download it from modx.com: NOTE: Remember to upload the setup-folder for YOUR version of Modx as these may include changes. Uploading wrong setup may cause your Modx to crash. You can check your current Modx-version in your Manager-panel. Do this before moving all your files.
    5. Run the setup (select existing site).
    6. All done.

    To find your full path, this PHP-script should do the magic:

    <?php
    echo dirname(__FILE__);
    ?>
    

    Place this in the Modx-root. This will be your root-path.

    This should be a pretty bulletproof way to do it, but remember to take backup of all your files and be careful when changing paths and urls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Setup: MODX Revolution 2.2.4-pl (traditional) Hosting: HostGator Shared Linux server Problem: After I have
I'm developing my first ever MODx site and I need to have three blocks
Have finally got a responsive site working (of a fashion). What I want to
A weird one: I have a site using ModX and this morning when I
let's say you have a url like this entered in modx Evo www.zipit.com.org/reference/toamovie/ if
Hello MODx developers, I am using MODx revolution. I have just transferred site from
I have created a website using modx evolution v1.0.2. The website that I have
I have a function and I create a snippet in modx revolution: function functionName(){
Is there an easy way to have the language of the modx backend interface
i use jquery + jquerui in modx and the accordion. I wan't to have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.