This question has been answered by multiple community members. See the first response.
)modx_context_setting
modx_system_settings
Find appropriate context and editmodx_context_setting
of course there is a table called xx_context_settings.
Or go to main settings (show all rows) ... find site_url and other stuffsmodx_system_settings
Have you looked at the values in the core/config/config.inc.php file?
None of the values represented in this file gives any hint to the old URL. My core/config/config.inc.php looks like this (values substituted by example-values, some values excluded for security reasons (like all the database-stuff))<?php
/**
* MODX Configuration file
*/
/*
[...database stuff...]
*/
$config_options = array (
);
$driver_options = array (
);
$lastInstallTime = 1454514219;
/* site-id, session and so on excluded in this quote /*
if (!defined('MODX_CORE_PATH')) {
$modx_core_path= '/home/www/TP_core/';
define('MODX_CORE_PATH', $modx_core_path);
}
if (!defined('MODX_PROCESSORS_PATH')) {
$modx_processors_path= '/home/www/TP_core/model/modx/processors/';
define('MODX_PROCESSORS_PATH', $modx_processors_path);
}
if (!defined('MODX_CONNECTORS_PATH')) {
$modx_connectors_path= '/home/www/xx_bestellung.de/TP_connect/';
$modx_connectors_url= '/TP_connect/';
define('MODX_CONNECTORS_PATH', $modx_connectors_path);
define('MODX_CONNECTORS_URL', $modx_connectors_url);
}
if (!defined('MODX_MANAGER_PATH')) {
$modx_manager_path= '/home/www/xx_bestellung.de/TP_manager/';
$modx_manager_url= '/TP_manager/';
define('MODX_MANAGER_PATH', $modx_manager_path);
define('MODX_MANAGER_URL', $modx_manager_url);
}
if (!defined('MODX_BASE_PATH')) {
$modx_base_path= '/home/www/xx_bestellung.de/';
$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.xx_bestellung.de';
define('MODX_HTTP_HOST', $http_host);
} else {
$http_host= array_key_exists('HTTP_HOST', $_SERVER) ? $_SERVER['HTTP_HOST'] : 'www.xx_bestellung.de';
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/www/xx_bestellung.de/TP_assets/';
$modx_assets_url= '/TP_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= false;
define('MODX_CACHE_DISABLED', $modx_cache_disabled);
}
The site_url System Setting is created on-the-fly, based on the URL the user comes in on, so you won't find it anywhere.That's what I thought first also - but even when I can't find any representation of "bestellung-xx.de" in the config files as well as in the table xx_context-settings as well as in .htaccess, everytime I call the site in my browser via "x_bestellung.de", the value of "base href", which is written in the source code of my template like this:
<base href="[[!++site_url]]" />
)