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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

Install Controlling All Sub Directories


Go to End


11 Posts   3932 Views

Avatar
johnd01

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

Avatar
Bruce B

Community Member, 164 Posts

8 September 2009 at 2:48pm

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.

Avatar
johnd01

Community Member, 7 Posts

8 September 2009 at 3:09pm

That fixed it. Thanks!

Go to Top