Jhin Posted June 21, 2019 Share Posted June 21, 2019 Hello there! First off, sorry about my english. Excuse me if you find any type of typo or my way to write seems weird. I love processwire. I've using it for a long time but just right now in trying to go a little bit further. I have a main domain where processwire is installed. From another subdomain where processwire is not installed, I'm trying to make a full custom website. Everything works fine, using the Multi Instance tutorial I've been abble to load data and port user session from one instance to other. But, I've got a problem. When I do the <?php echo $site->page->url(); ?> The output is /subdomain/page1url/ which is correct because my web hierarchy is Home - subdomain - - page 1 - - page 2 But I would love make the url to be only /pageurl/. Can be this done? Should I hack .httacces or there is any other workaround to make this done? Thanks for your support. Link to comment Share on other sites More sharing options...
dragan Posted June 21, 2019 Share Posted June 21, 2019 What kind of multisite setup are you using? Multiple installations of PW, or one PW installation serving several sites (Soma's setup, #2 of this doc page)? If I understand you question correctly, $page->name is enought, since this is really only the page-name, without page-parent(s). Link to comment Share on other sites More sharing options...
Jhin Posted June 21, 2019 Author Share Posted June 21, 2019 I'm using the Multi Instance feature from Processwire 3: https://processwire.com/blog/posts/multi-instance-pw3/ Truely, your solution is really simple, I think I can work it with the URL slashes. Thanks for your idea, maybe there's another solution, if anyne has another idea, will be highly appreciated. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now