Page 1 of 1

Re: Site from two IP adresses

Posted: Tue Dec 05, 2006 7:52 pm
by Dee
Have you tried setting relative paths for the url settings in your config ($config['*_url'])?
You could try using $_SERVER['HTTP_HOST'] like this:

Code: Select all

$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cms';

Re: Site from two IP adresses

Posted: Wed Dec 06, 2006 1:21 am
by Ted
Actually, you should be able to just take out the http://servername part and just make all the paths absolute without the server name.  I've done this several times and it works fine.