mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 21:58:51 +02:00
Add .htaccess to base with public rewrite
Upgrading from 4.0 to 4.1 we needed this extra file. It is created by default with the cms recipe eg: https://raw.githubusercontent.com/silverstripe/recipe-cms/1/.htaccess
This commit is contained in:
parent
5a8c5601a9
commit
3d2a3198d7
@ -27,6 +27,11 @@ this folder doesn't exist.
|
|||||||
When separating the public webroot from the BASE_PATH it is necessary to move a few files during migration:
|
When separating the public webroot from the BASE_PATH it is necessary to move a few files during migration:
|
||||||
|
|
||||||
- Move `.htaccess` from base to `public/`
|
- Move `.htaccess` from base to `public/`
|
||||||
|
- Create a new `.htaccess` in base that contains:
|
||||||
|
```
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^(.*)$ public/$1
|
||||||
|
```
|
||||||
- Move `index.php` from base to `public/`
|
- Move `index.php` from base to `public/`
|
||||||
- Move `assets` folder (including the nested `assets/.protected` folder) into `public/`.
|
- Move `assets` folder (including the nested `assets/.protected` folder) into `public/`.
|
||||||
This is the only folder which needs write permissions.
|
This is the only folder which needs write permissions.
|
||||||
|
Loading…
Reference in New Issue
Block a user