-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMS5: Document Enforce public webroot dir in 5.x onwards #8168
Comments
How would this work if SilverStripe was installed in a subdirectory? |
@DorsetDigital you should just be able to rewrite everything into the public directory still: https://github.com/silverstripe/silverstripe-installer/blob/4/.htaccess |
I'm pretty sure this will break our somewhat strange way of running endtoend tests in CI where we essentially git clone the repo, then run composer update, then somehow the site works in a browser. We'd need to change everything to probably run composer create-project silverstripe/installer and then |
Note that this will at the very least need PRs in the following repos:
|
@GuySartorelli linked PR has been merged - your last comment from August suggested this required more PRs - do we still need to do those or not? |
Nope, that was for the actual code changes which ended up being done as a separate card. |
Affected Version
5.x
Description
From 4.1 and onwards it was possible to have a 'public' webroot directory. (see #7419) This addition required a check to various parts of the framework to conditionally behave differently depending on whether this folder is present. From 5.x we may want to enforce the presence of this folder and set a fixed directory structure.
Related: silverstripe/recipe-core#25
Acceptance criteria
Recipes are updated to remove the htaccess config for the project rootPUBLIC_PATH
constant always points to public folder and any other logic design to allow the project root to be the public root is removed.PRs
The text was updated successfully, but these errors were encountered: