Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Subsite subdomain lost in 404-land

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 974 Views
  • AlaVive
    Avatar
    Community Member
    42 Posts

    Subsite subdomain lost in 404-land Link to this post

    Hello,

    I have tried to research this issue in the existing forum entries with no luck, but please inform me if it's already been addressed somewhere. And, I may be giving more info than necessary. But, I need to make this work and don't want to leave any stone unturned.

    I have installed SS-v2.3.0 in the public_html directory on a shared hosting (Bluehost) account and have the main site working. As well, I have installed the subsites module according to the various directions given in the KB and in these forums. The subdomains tab appears in the top level options, and it allows me to create and then to edit the subdomains.

    The problem I get is that it gives me the following error when I attempt to preview those subdomains:

    404 Not Found
    The requested URL /SilverStripe-v2.3.0/family/?stage=Stage does not exist.

    What I've done

    The mysite/config.php file has been changed to allow subsite domains as follows:

    Subsite::set_allowed_domains(array(
    'com',
    'org',
    'net'

    ));

    I have created a subdomain for the subsite at Bluehost as follows:

    subdomain: pretendsubdomainname    
    root: .pretendrootdomain.com    
    document root: Home/public_html/SilverStripe-v2.3.0

    The domain for the subsite is then registered as an add-on domain in Bluehost to point to this subsite.

    The following is the .htaccess file (in case it's helpful):

    # Use PHP5CGI as default
    AddHandler fcgid-script .php

    ### SILVERSTRIPE START ###

    <IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /SilverStripe-v2.3.0/

    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]

    </IfModule>

    ### SILVERSTRIPE END ###

    What am I missing? I'm hoping the solution is something simple that I just can't see because I've been looking at this for so long. Any help is much appreciated!

    974 Views
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.