Jump to content

Recommended Posts

Posted

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.

 

Posted

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).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...