Jump to:

23455 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » subdomain / folder unreachable : Error 500

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 3896 Views
  • khaoz
    Avatar
    Community Member
    7 Posts

    subdomain / folder unreachable : Error 500 Link to this post

    Who ever has the working solution please assist. The problem I have is that a different e-commerce subdomain was intentionally created for the site I am working on. Due to my liking of silverstripe I decided to place SS in the root folder (also known as public_html) and the e-commerce system is running in a ws (webshop) folder. This folder is a subdomain folder so when accessed we are looking at http://ws.domainname.nl and http://www.domainname.nl for silverstripe.

    I tried reconfiguring the .htaccess file but with no luck. It seems any changes remove the visibility of the entire silverstripe site.
    I need to know what I need to place in the SS htaccess file so that any created subdomain is accessible whenever.

    Now I am only receiving a Internal Server error 500 when accessing any folder and subdomain.

    Any one have a working solution for this?

    And I read a lot of threads in the forum but they seem to all speak about silverstripe on a subdomain and for a different project that proved not to be any problem. This is about silverstripe being the root and another CMS blogsystem ecommerce system is on another subdomain.

    ] THANKS [

  • LoZzA
    Avatar
    Community Member
    11 Posts

    Re: subdomain / folder unreachable : Error 500 Link to this post

    This is the same problem as I am having and from hours of scouring the forum I see a lot of other people are having this trouble of SS 2.3.3 trying to control a subdomain directory.

    A few people are saying that the rules they used in the web root .htaccess file for SS 2.2.x no longer work in SS 2.3.3 I hope someone finds a solution soon, real soon!

    I am trying to install phpList on a subdomain with SS installed in the web root directory, without any luck. The directory that the subdomain points to is in the web root. I cannot link it to a directory outside the web root. If I installed SS in a sub directory of the web root, things work fine. But not if SS is installed in the webroot.

    Someone out there please help us!

    LoZzA

  • LoZzA
    Avatar
    Community Member
    11 Posts

    Re: subdomain / folder unreachable : Error 500 Link to this post

    I think I have found the answer. This is what I changed my .htaccess file to

    RewriteEngine On

    RewriteBase /

    RewriteRule ^subdomaindirectory$ subdomaindirectory/ [R,L]
    RewriteRule ^subdomaindirectory/(.*)$ subdomaindirectory/$1 [L]

    ### SILVERSTRIPE START ###
    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]
    ### SILVERSTRIPE END ###

    Just replace subdomaindirectory with your folder name and is should work. It's working for me now.

  • Ricardona
    Avatar
    Community Member
    26 Posts

    Re: subdomain / folder unreachable : Error 500 Link to this post

    Thanks a lot, this is working for me!

  • Nature Boy
    Avatar
    Community Member
    1 Post

    Re: subdomain / folder unreachable : Error 500 Link to this post

    Thanks for that one - the htaccess redirects for subdomains ... much appreciated, worked a treat for me.

    You just saved me fumbling my way through an hour or so of apache documentation, trying to remember how to do such a thing. So big thanks.

  • johannes
    Avatar
    Community Member
    20 Posts

    Re: subdomain / folder unreachable : Error 500 Link to this post

    I tried different values for the 'subdomaindirectory', but I didn't work for me. Can anybody give me an example how it should look.

    3896 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.