relative root path
Posted: Thu Jul 15, 2010 6:40 am
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.
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.