Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev version: View links does not work with other home path than "/" #8

Open
hefan opened this issue May 27, 2016 · 2 comments
Open

Comments

@hefan
Copy link

hefan commented May 27, 2016

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.

@somatonic
Copy link
Owner

somatonic commented Aug 17, 2016

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.

@hefan
Copy link
Author

hefan commented Aug 20, 2016

My test setup used a subdir and multilanguage, thats right. Good to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants