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

Move SS sys files above webroot?


Reply

2 Posts   437 Views

Avatar
benjamin-smith

29 November 2013 at 6:22am Community Member, 17 Posts

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

3 December 2013 at 5:24am Community Member, 395 Posts

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