Here is my current info for all things great and small:
MODx 0.9.6 rev:2767
Server API = CGI/FastCGI
PHP ver. 4.4.7
mySQL Client API version = 4.1.21
from my config.inc.php file, these values are hard coded in:
$base_url=’
http://www.unionky911.org/’;
$base_path=’/data/12/1/136/35/1136687/user/1207121/htdocs/’;
$site_url=’
http://www.unionky911.org/’;
and this portion of code is completely removed from the config.inc.php file:
// automatically assign base_path and base_url
if(empty($base_path)||empty($base_url)||$_REQUEST[’base_path’]||$_REQUEST[’base_url’]) {
$sapi= ’undefined’;
if (!strstr($_SERVER[’PHP_SELF’], $_SERVER[’SCRIPT_NAME’]) && ($sapi= @ php_sapi_name()) == ’cgi’) {
$script_name= $_SERVER[’PHP_SELF’];
} else {
$script_name= $_SERVER[’SCRIPT_NAME’];
}
$a= explode("/manager", str_replace("\\", "/", dirname($script_name)));
if (count($a) > 1)
array_pop($a);
$url= implode("manager", $a);
reset($a);
$a= explode("manager", str_replace("\\", "/", dirname(__FILE__)));
if (count($a) > 1)
array_pop($a);
$pth= implode("manager", $a);
unset ($a);
$base_url= $url . (substr($url, -1) != "/" ? "/" : "");
$base_path= $pth . (substr($pth, -1) != "/" && substr($pth, -1) != "\\" ? "/" : "");
// assign site_url
$site_url= ((isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’https://’ : ’http://’;
$site_url .= $_SERVER[’HTTP_HOST’];
if ($_SERVER[’SERVER_PORT’] != 80)
$site_url= str_replace(’:’ . $_SERVER[’SERVER_PORT’], ’’, $site_url); // remove port from HTTP_HOST
$site_url .= ($_SERVER[’SERVER_PORT’] == 80 || (isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’’ : ’:’ . $_SERVER[’SERVER_PORT’];
$site_url .= $base_url;
}
My .htaccess file is:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
#BrowserMatch "MSIE" brokenvary=1
#BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
#BrowserMatch "Opera" !brokenvary
#SetEnvIf brokenvary 1 force-no-vary
#php_flag register_globals Off