17488 Posts in 4473 Topics by 1978 members
|Go to End|
28 September 2007 at 5:00pm
Is there a way to utilize subdomains within a single SilverStripe installation? Since SS does not support multi-level directory hierarchies yet, I'm looking for a way to 'organize' the site and separate some of the content. So ideally, I could have:
but page78 and page84 would not be available on www.mainsite.com. Is this possible? I searched the forum and docs and didn't see many references to using subdomains.
28 September 2007 at 5:30pm
There is the option in the 'Behaviour' tab on any page for specifying a domain, or multiple domains.
However, am I correct in assuming you want to block off certain pages dependant on the domain you're currently on? If that's the case, we don't have that certain functionality, but we do have the ability to do what you're looking for half of it.
30 September 2007 at 8:00pm
You could use modify the Access system that comes with 2.1 to do this.
Or you could use the subsites module that is in Subversion/Dailybuilds, which would do exactly what you want; it allows you to run several websites from the one installation and share content/structure between the two. However, we've not yet had time to properly document it...
Finally, do realise that silverstripe is really quite OO and built to let you play and achieve what you want; rather that come up with every possible idea someone needs, we give you the framework to let you do it yourself
1 December 2007 at 2:18am Last edited: 1 December 2007 2:37am
What do I write in that field 'domains'?
Do I write:
It's not clear to me what the field expects...
And anyone experience with doing this in combination with dreamhost and setting up subdomains there?
I've setup the subdomain in the panel and it works, but it's not pointing to the page of my SS-site, which seems logical as the subdomain is just a new directory in my root folder
so I have the directory 'mysite' and besides that, on the same level, 'test.mysite' so it makes sense to me that it doesn't work....
If I change it so that the directory of the subdomain points to www.mysite.com/test/ then I get an error when visiting the page
sapphire/main.php was not found on this server.
Which seems logical because there is nothing in that directory...
5 December 2007 at 11:01am
Apparently, RootURLController.php checks for $_SERVER['HTTP_HOST'];
The field in the backend just goes into a single field in the database table of SiteTree.
5 December 2007 at 11:41am
|Go to Top|