Admin login using relative paths
Posted: Thu Jun 07, 2007 9:48 am
Hi, I'm managing a website that is hosted in a subdirectory ie www.myhost.net/cms, it can be accesed by a redirection from www.url.com.
I'm using these settings:
$config['root_url'] = '';
$config['root_path'] = '/is/htdocs/wpxxxxxxxx_GRAW4AWMNV/www/cms';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/is/htdocs/wpxxxxxxxx_GRAW4AWMNV/www/cms/tmp/cache';
$config['uploads_path'] = '/is/htdocs/wpxxxxxxxx_GRAW4AWMNV/www/cms/uploads';
$config['uploads_url'] = 'http://www.url.com/uploads';
So far it works fine, but when I try to enter www.url.com/admin I am redirected to www.myhost.net/admin wich should be www.myhost.net/cms/admin and even when I'm entering my data and press submit it directs me to www.myhost.net/admin/. Entering the url by hand (www.myhost.net/admin/index.php) after login in works fine.
Any ideas how to solve this?
I'm using these settings:
$config['root_url'] = '';
$config['root_path'] = '/is/htdocs/wpxxxxxxxx_GRAW4AWMNV/www/cms';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/is/htdocs/wpxxxxxxxx_GRAW4AWMNV/www/cms/tmp/cache';
$config['uploads_path'] = '/is/htdocs/wpxxxxxxxx_GRAW4AWMNV/www/cms/uploads';
$config['uploads_url'] = 'http://www.url.com/uploads';
So far it works fine, but when I try to enter www.url.com/admin I am redirected to www.myhost.net/admin wich should be www.myhost.net/cms/admin and even when I'm entering my data and press submit it directs me to www.myhost.net/admin/. Entering the url by hand (www.myhost.net/admin/index.php) after login in works fine.
Any ideas how to solve this?