Move all the files outside the web root
Permalink
Hello all,
I've been checking the forums and couldn't find an answer to this question: I'd like to move as many files as possible outside the web root of my site. I want to have only an index.php file (and images, css, js folders) inside the web root, and outside it all the rest of the files.
So the tree should be something like:
/root
/root/htdocs/index.php
/root/concrete (and all the folders and files inside the concrete folder)
/root/blogs
/root/config
etc...
I tried to do this but then concrete can't find css/js files, and it also ask me to install the site again.
I hope this is clear. Thanks in advance!
I've been checking the forums and couldn't find an answer to this question: I'd like to move as many files as possible outside the web root of my site. I want to have only an index.php file (and images, css, js folders) inside the web root, and outside it all the rest of the files.
So the tree should be something like:
/root
/root/htdocs/index.php
/root/concrete (and all the folders and files inside the concrete folder)
/root/blogs
/root/config
etc...
I tried to do this but then concrete can't find css/js files, and it also ask me to install the site again.
I hope this is clear. Thanks in advance!
I was able to remove all folders except the concrete directory. In case someone is intrested I had to change line 4 in the base_pre script to:
you could also create a symlink, bot sure why it matters though
Well, I'd like that at least the config/site.php file (with the DB credentials) is outside the web root. And since I took the config folder outside the root, why not take as many folders as possible, right?