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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Installing SilverStripe /

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

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

Move SS sys files above webroot?


Go to End


2 Posts   996 Views

Avatar
benjamin-smith

Community Member, 17 Posts

29 November 2013 at 6:22am

Is it possible to move SS system files to a directory above the web root? This include framework/, cms/ and individual module directories (including mysite).

All in all, I only want index.php and FE assets in the web root.

I have everything working for the main site FE - my issue is the CMS. I cannot get JS/CSS assets to load from the cms/ directory above web root. Do I have any options here? Is this possible? From what I can tell, it is not possible to use mod_rewrite to load files above web root.

Using SS 3.1, installed via composer.

Avatar
Nivanka

Community Member, 400 Posts

3 December 2013 at 5:24am

using a virtual host can help and you can have a custom domain for the CMS too like cms.mydomain.com