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

Installing Silverstripe outside web folder


Go to End


1146 Views

Avatar
simon2012

Community Member, 4 Posts

4 February 2013 at 5:20am

Hello,

I downloaded and installed SS and placed it inside the website's root folder - no problems.

Now I tried to move the SS folder outside the website's root folder to increase security but it doesn't work at all :(

I'm running PHP Version => 5.3.17, Apache 2.2.22, MySQL on Linux.

My .htaccess looks like this:

<IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteBase '/ss'

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

but in apache2 error log I get this:

[Sun Feb 03 17:05:34 2013] [error] [client x.x.x.x] Invalid URI in request GET /ss/ HTTP/1.1

(where /ss is the directory where I want to access SilverStripe)

Any ideas?

Regards

Simon