Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Support for Sub-Folder And Sub-Domain Multi-Site?

Started by Brian Boatright 8 years ago · 2 replies · 1075 views
8 years ago

I was just reading the docs about [Multisite](https://learn.getgrav.org/advanced/multisite-setup#quickstart-for-beginners) setup and had a question.

Can Grav support a multi-site using BOTH a sub-folder and sub-domain structure?

So the Sub-Domains could be locations like miami.mysite.com or chicago.mysite.com and then user profiles would be sub-folders as either mysite.com/briankb or miami.mysite.com/briankb

these three URL's would resolve to the same files/site (user sites)

  • mysite.com/briankb
  • miami.mysite.com/briankb
  • chicago.mysite.com/briankb

but these will be different sites (location/group sites)

  • mysite.com
  • miami.mysite.com
  • chicago.mysite.com

(mysite.com is just a pseudo name)

8 years ago

@briankb:
Can Grav support a multi-site using BOTH a sub-folder and sub-domain structure?

If i have well understood your question, the answer is Yes !

The main issue i have is that the admin panel is not multisite : I have to duplicate for each domain or subdomain the admin plugins. Another litlle issue is that the folder for the image in the theme setup is the same for all domain and subdomain.

I am using Grav CMS since 1,5 month in a multisite setup and all the system is well working as i would like.

👍 1
8 years ago

thanks for the feedback! I've read about the admin not working yet for multi-site.

for now I just want to setup sub-folders where a user can edit their "profile" page. I'm thinking for that I might just be able to set them up as pages where each user is only allowed to edit a single page which is routed to blah.com/[username]. In the future I'd love for each user folder to have a blog and other pages but not a different theme or at least a theme that is shared among all user sub-folders. blah.com/[username]/blog.

The sub-domains would be like individual grav sites with full editing. I'd like to keep the logins and usernames unique within all of the pages/systems though (federated I think is the term).

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 11 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago