Jump to content

One admin panel and database for two domains


regesh
 Share

Recommended Posts

Hi all. Could anybody help with this:
I have two domains: site1.domain.com and site2.domain.com
They are hosted at one server and put in folders
site1: /home/site1/public
site2: /home/site2/public
(for example)
All processwire files are in site1 folder and this site goes well.
I put file index.php in site2 folder with the same content as it is in site1 folder but only changed $rootPath to path for site1 folder
But still i can use only api but site doesn't loads the same way as site1

I need to you use one installation of prw to load site at two domains (copy)

What i need to do to start it works!?

Link to comment
Share on other sites

18 minutes ago, kongondo said:

Consider these 2 options:

https://processwire.com/api/modules/multi-site-support/

Option 1 would mean multiple databases. Option 2, single database is what you seem to be after. I use Option 1 for my own sites. 

That's not work for me.

If just copy all files to domain 2 folder and change path to "site" folder - how to do it.

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

  • Recently Browsing   0 members

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