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

    I have had a test site located inside of a test directory and I am ready to move the site to the root of the domain. I tried just copying it straight out but it will not let me log into the manager even though it will show up.

    What is the right way to move a site to a different directory. I am using the latest version of ModX Revolutions?

    Thanks!
    Joel Logan
    Commerce, GA
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      This will mostly apply. http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server

      Especially check your .htaccess file; if it had a RewriteBase of /subdirectory you’ll need to change that to just /
        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
        • 14424
        • 28 Posts
        Hello,

        I have the site moved, site comes up good(http://www.usmcgraduations.com/index.php) but i can’t log into my manager. It just gets stuck in a loop and comes up over and over when you try to log in.

        Below is my config file minus the sensitive passwords:

        _____________________________________________________

        <?php
        /**
        * MODx Configuration file
        */
        $database_type = ’****’;
        $database_server = ’****;
        $database_user = ’****’;
        $database_password = ’*****’;
        $database_connection_charset = ’utf8’;
        $dbase = ’`*****`’;
        $table_prefix = ’******’;

        $lastInstallTime = 1284430923;

        $site_id = ’modx4c8edc4be28a92.53792675’;
        $site_sessionname = ’SN4c8edbf29280f’;
        $https_port = ’443’;

        if (!defined(’MODX_CORE_PATH’)) {
        $modx_core_path= ’/home/content/r/i/c/richardlundy/html/core/’;
        define(’MODX_CORE_PATH’, $modx_core_path);
        }
        if (!defined(’MODX_PROCESSORS_PATH’)) {
        $modx_processors_path= ’/home/content/r/i/c/richardlundy/html/core/model/modx/processors/’;
        define(’MODX_PROCESSORS_PATH’, $modx_processors_path);
        }
        if (!defined(’MODX_CONNECTORS_PATH’)) {
        $modx_connectors_path= ’/home/content/r/i/c/richardlundy/html/connectors/’;
        $modx_connectors_url= ’/connectors/’;
        define(’MODX_CONNECTORS_PATH’, $modx_connectors_path);
        define(’MODX_CONNECTORS_URL’, $modx_connectors_url);
        }
        if (!defined(’MODX_MANAGER_PATH’)) {
        $modx_manager_path= ’/home/content/r/i/c/richardlundy/html/manager/’;
        $modx_manager_url= ’/manager/’;
        define(’MODX_MANAGER_PATH’, $modx_manager_path);
        define(’MODX_MANAGER_URL’, $modx_manager_url);
        }
        if (!defined(’MODX_BASE_PATH’)) {
        $modx_base_path= ’/home/content/r/i/c/richardlundy/html/’;
        $modx_base_url= ’/’;
        define(’MODX_BASE_PATH’, $modx_base_path);
        define(’MODX_BASE_URL’, $modx_base_url);
        }
        if(defined(’PHP_SAPI’) && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
        $isSecureRequest = false;
        } else {
        $isSecureRequest = ((isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port);
        }
        if (!defined(’MODX_URL_SCHEME’)) {
        $url_scheme= $isSecureRequest ? ’https://’ : ’http://’;
        define(’MODX_URL_SCHEME’, $url_scheme);
        }
        if (!defined(’MODX_HTTP_HOST’)) {
        if(defined(’PHP_SAPI’) && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
        $http_host=’www.usmcgraduations.com’;
        define(’MODX_HTTP_HOST’, $http_host);
        } else {
        $http_host= $_SERVER[’HTTP_HOST’];
        if ($_SERVER[’SERVER_PORT’] != 80) {
        $http_host= str_replace(’:’ . $_SERVER[’SERVER_PORT’], ’’, $http_host); // remove port from HTTP_HOST
        }
        $http_host .= ($_SERVER[’SERVER_PORT’] == 80 || $isSecureRequest) ? ’’ : ’:’ . $_SERVER[’SERVER_PORT’];
        define(’MODX_HTTP_HOST’, $http_host);
        }
        }
        if (!defined(’MODX_SITE_URL’)) {
        $site_url= $url_scheme . $http_host . MODX_BASE_URL;
        define(’MODX_SITE_URL’, $site_url);
        }
        if (!defined(’MODX_ASSETS_PATH’)) {
        $modx_assets_path= ’/home/content/r/i/c/richardlundy/html/assets/’;
        $modx_assets_url= ’/assets/’;
        define(’MODX_ASSETS_PATH’, $modx_assets_path);
        define(’MODX_ASSETS_URL’, $modx_assets_url);
        }
        if (!defined(’MODX_LOG_LEVEL_FATAL’)) {
        define(’MODX_LOG_LEVEL_FATAL’, 0);
        define(’MODX_LOG_LEVEL_ERROR’, 1);
        define(’MODX_LOG_LEVEL_WARN’, 2);
        define(’MODX_LOG_LEVEL_INFO’, 3);
        define(’MODX_LOG_LEVEL_DEBUG’, 4);
        }
        if (!defined(’MODX_CACHE_DISABLED’)) {
        $modx_cache_disabled= true;
        define(’MODX_CACHE_DISABLED’, $modx_cache_disabled);
        }
        ______________________________________


        Thanks!
        Joel Logan