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.

Installing SilverStripe /

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

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

Install Controlling All Sub Directories

Go to End

11 Posts   2836 Views


Community Member, 7 Posts

8 September 2009 at 12:58pm

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
order deny,allow
deny from all
AuthUserFile /home2/edited.pwd
AuthGroupFile /home2/edited.grp

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

<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]

Bruce B

Community Member, 147 Posts

8 September 2009 at 2:48pm

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.


Community Member, 7 Posts

8 September 2009 at 3:09pm

That fixed it. Thanks!

Go to Top