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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

subsite module don't work correct


Go to End


4 Posts   1356 Views

Avatar
bebabeba

Community Member, 193 Posts

10 September 2010 at 9:22pm

Edited: 10/09/2010 10:01pm

Hi!
I use subsite module but SS seems not found my new subsite.
In my apache I write

<Directory "D:/test">
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Alias /test "D:/test"
Alias /subsite.test "D:/test"

So when i create my subsite follow SS indication, I write in domain: server_name/subsite.test

What is wrong? SS create correct my subsite, I can create new page but when I click on public site the url of my newpage is:

http://server_name/subsite.test/test/nuovapage

and is not correct. The message is: page not found, page not exist..

I try this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /test

# Subsite rewrite
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^subsite$
RewriteRule .* sapphire/main.php?url=%1&SubsiteID=3&%{QUERY_STRING} [L]

# Normal SilverStripe page
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]

</IfModule>

but don't work..help..

Avatar
bebabeba

Community Member, 193 Posts

13 September 2010 at 7:56pm

hei?any idea???

Avatar
dacar

Community Member, 173 Posts

14 September 2010 at 10:37pm

Hi bebabeba,

i have installed the subsite module on 2.4.1 succesfuly. Make sure that your subdomains point to your Silverstripe root installation. If it doe's you don't need an extra subsite rewrite. It works out of the box.

Greetings, Carsten.

Avatar
bebabeba

Community Member, 193 Posts

16 September 2010 at 2:10am

Hi dacar!
my installation is correct. If I try my link by url http://server_name/subsite.test/test/nuovapage?SubsiteID=3 work correct, but if i use draft site SS look for a no correct url..
Why my .htaccess instructions are ignored?