dev version: View links does not work with other home path than "/"
In the dev version: another home path than "/" leads to a "404 not found" when clicking "view" in page tree or in page detail.
My Setup: pw is installed in "/pw_test/" normal page works.
Page Tree:
- Web
- pw1
- Pages
- pw2
- Pages
Multidomain setup:
$config->MultisiteDomains = array(
"pw1.domain.com" => array(
"root" => "pw1",
"http404" => PAGEID
),
"pw2.domain.com" => array(
"root" => "pw2",
"http404" => PAGEID
)
);
$config->httpHosts = array('localhost', 'pw1.domain.com', 'pw2.domain.com');
in my /etc/hosts pw1.domain.com and pw2.domain.com leads to localhost
The view link leads to "http://local1.domain.com/pw_testhttp://local1.domain.com/en/" The URL http://local1.domain.com/pw_test/en works as excepted though.
In the same setup with home path "/" the "view" links work.
Sorry for the late reply. Just to confirm. We are not talking about multilanguage but the fact that pw is installed in a subdirectly? /pw_test/
This is expected to not work as you found out. I haven't looked into supporting subdirs and don't know if I really want to :) It's already complex and so much to consider that can go wrong, maybe I can sometime look into it closer.
I don't encourage one to use subdir as it (can) creates a lot of issues already. So best is always to use the webroot.
My test setup used a subdir and multilanguage, thats right. Good to know.