Jump to:

23493 Posts in 19013 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » addon domain not accessible

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 2
Go to End
Author Topic: 3290 Views
  • redcirce
    Avatar
    Community Member
    22 Posts

    addon domain not accessible Link to this post

    I have an addon domain (public_html/addon_folder/) that is no longer accessible now that SilverStripe is working.

    I'm getting the following error:

    Not Found

    The requested URL /sapphire/main.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Apache/2.0.61 (Unix) mod_ssl/2.0.61 DDB DAV/2 mod_jk/1.2.25 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 mod_bwlimited/1.4 Sun-ONE-ASP/4.0.2 Server at www.mysite.com Port 80

    Thanks.

  • redcirce
    Avatar
    Community Member
    22 Posts

    Re: addon domain not accessible Link to this post

    Solved. Thanks anyway.

  • plomar
    Avatar
    6 Posts

    Re: addon domain not accessible Link to this post

    Hi!

    I have the same problem, what I have to do?

    Marko!

    Thanks!

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: addon domain not accessible Link to this post

    this happens because of the .ahtaccess rules of the SilverStripe.

    Just add the rules to the folders expect the relevant folder.

  • plomar
    Avatar
    6 Posts

    Re: addon domain not accessible Link to this post

    Hi Nivanka!

    thanks for the answer, but I still don't know what to change, and how.
    I just design!
    Marko!

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: addon domain not accessible Link to this post

    Edit the .htaccess file in the root of your site

    Change this:

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

    To this:

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

    In other words, add the "-d" line.

  • Spacemonkey
    Avatar
    Community Member
    5 Posts

    Re: addon domain not accessible Link to this post

    I don't know much about the .htaccess file

    It there away to only allow certain folders to be accessed?

  • plomar
    Avatar
    6 Posts

    Re: addon domain not accessible Link to this post

    Thanks to all of you guys!

    I solved the problem.
    Just put a new .htaccess file in the subdomain folder.

    RewriteEngine On
    RewriteBase /subdomain/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /subdomain/index.php(or .html) [L]

    3290 Views
Page: 1 2
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.