Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » subsites setup

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1137 Views
  • dacar
    Community Member
    168 Posts

    subsites setup Link to this post

    Hi, iam playing around with subsites for a while now, but i am still not able to get it working. Here is what i have done so far:

    1. set up an subdomain directory: .sub-carsten (thats how it works at www.bytecamp.net - very good hosting for silverstripe. They even offer an silverstripe installer)

    2. set an DNS entry in the domain configuration: carsten.bliblablu.de

    3. put a .htacces into the new directory. last version:

    AddType application/x-httpd-php5 .php

    <Files *.ss>
       Order deny,allow
       Deny from all
       Allow from

    <Files web.config>
       Order deny,allow
       Deny from all

    <IfModule mod_rewrite.c>
    #   RewriteBase /
    #   RewriteRule ^subdomaindirectory$ subdomaindirectory/ [R,L]
    #   RewriteRule ^subdomaindirectory/(.*)$ subdomaindirectory/$1 [L]

    # Subsite rewrite
       RewriteEngine On
       RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{HTTP_HOST} ^carsten.bliblablub.de$
       # RewriteRule ^(.*)$ ../ [NC]
       RewriteRule .* ./sapphire/main.php?url=%{REQUEST_URI}&SubsiteID=3&%{QUERY_STRING} [L]



    4. set up subsites within the admin:
    4.1 Subsite Name = Carsten
    4.2 Primary domain: carsten.bliblablub.de
    4.3 Active Subsite: 1
    4.4 Language: german
    4.5 default site: no
    4.6 Enable public access: true
    4.7 Theme: trip

    If i run http://www.bliblablub.de/?SubsiteID=3 (ID is correct) i get: The requested page could not be found.

    Questions: How can i use a subdomain with subsites and what do i have to configure to make it work?

    Greetings, Carsten.

  • yug
    Community Member
    17 Posts

    Re: subsites setup Link to this post

    Please someone.....i am also having trouble with this

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.