Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Subsite module, DNS configuration


Reply

19 Posts   6236 Views

Avatar
TF-35Lightning

11 May 2010 at 8:20pm (Last edited: 11 May 2010 8:45pm), Community Member, 137 Posts

bennylope how would I got about setting that A Record exactly??? You mean to add a A record in the domain.

say I've got a domain.com then on my gridservice I create a another directory test.domain.com create the html directory inside that, is that how you would set it up?

Is that a .htaccess thing I need to set, or do I have to edit the domain or?

Avatar
SS_Learner

3 January 2013 at 6:21pm Community Member, 18 Posts

Hi TF-35Lightning

I read this post and found this is similar to what i am looking for.I m using my wamp server to point my subsite to subsite1.mysilverstripe.I have added the virtual host in the similar way u mentioned and the .htaccess thing.with which i can point the
subsite1.mysilverstripe and mysilverstripe to the same home page...
This is quite similar to what happened with u.
Hope could help me...

Avatar
isolated

30 January 2013 at 6:34am Community Member, 28 Posts

i have similar problem:
a subdomain is created and exists subdomain directory under root.
Under this subdomain directory a .htaccess is created with:
   # Subsite rewrite
   RewriteCond %{REQUEST_URI} ^(.*)$
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{HTTP_HOST} ^subdomain.domain.ltd$
   RewriteRule .* framework/main.php?url=subdomain&SubsiteID=1&%1 [L]

subsiteID=1, instead subdomain/domain have actual values.
Any ideas whould be welcome (it is ss3)