Jump to:

4876 Posts in 6997 Topics by 1473 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install Controlling All Sub Directories

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1 2
Go to End
Author Topic: 2546 Views
  • johnd01
    Avatar
    Community Member
    7 Posts

    Re: Install Controlling All Sub Directories Link to this post

    I just renamed the htaccess and it did fix the problem however I am not sure what needs to be edited. Here is the file:

    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName edited.com
    AuthUserFile /home2/edited.pwd
    AuthGroupFile /home2/edited.grp

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

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

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

  • Bruce B
    Avatar
    Community Member
    145 Posts

    Re: Install Controlling All Sub Directories Link to this post

    John,
    By default Silverstripe grabs all incoming requests and interprets them as requests for Silverstripe pages. To get it to ignore the requests for your sub-folder, you need to modify the .htaccess file at the root level of your site. Add the following line:

    RewriteCond %{REQUEST_URI} !/whmcs/ [NC]
    immediately after the following line:
    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

    Let me know how it goes.

  • johnd01
    Avatar
    Community Member
    7 Posts

    Re: Install Controlling All Sub Directories Link to this post

    That fixed it. Thanks!

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