Jump to content

Multisite.module conflict with Processwire 2.6


robinc
 Share

Recommended Posts

I am using the Multisite.module to run several (similar/related) websites off a single PW-site and database.

Adding new sites was as simple as adding the domain to the config box, and a top level page of the same name.

However, since an upgrade of PW, I now also have to update my site/config.php file with each extra domain, i.e.

$config->httpHosts = array(
  'mydomain.com', // our primary hostname
  'related.mydomain.com', // related website  
  );
 

Otherwise the site will throw a 404 page not found.

Leaving a blank httpHosts will allow all hostnames, but causes a warning in the back-end

Unrecognized HTTP host:'mydomain.com' - Please update your $config->httpHosts setting in /site/config.php

Can anyone advise how best to update Multisite.module?

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...