relative root path

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
lid3r
Forum Members
Forum Members
Posts: 18
Joined: Fri Nov 07, 2008 1:35 pm

relative root path

Post by lid3r »

Hi, everyone.
I have a really urgent case with my site. I have about 20 domains set.
Problem> I want only one installation and one database for all the domains.
The CNMAE on hosting is not working for some reason, so he suplied me with this solution>
ln -s /home/sfilatov/domains/keefir.ee/public_html/reklaam/ /home/sfilatov/domains/reklaami.ee/public_html

It works only for the index page, but if u click on a link, the url is changed again.
I bet this solution is not so good, but i have no choice in this case, unfotunetly. I came up eith the idea, to change the root url in config pho to the variable depending on a server where u came from>
$globalpath = $_SERVER["HTTP_HOST"];
$config['root_url'] = $globalpath;

i hope the idea is clear, i am not the programmer so maybe it will be simple for you, but for me it is not doable. Searching for your help, asap, the project should be released today evening.
lid3r
Forum Members
Forum Members
Posts: 18
Joined: Fri Nov 07, 2008 1:35 pm

Re: relative root path

Post by lid3r »

Solved:  $config['root_url'] = 'http://'.$_SERVER['SERVER_NAME'];

Anyway, thanks for help.
Locked

Return to “[locked] Installation, Setup and Upgrade”