Skip to content

Commit 3ea91d5

Browse files
authored
Add FAQ - change folder web to public (contao#1079)
1 parent 5359218 commit 3ea91d5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/manual/faq/_index.de.md

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ Es handelt sich um einen Hinweis wie du den Strict Mode aktivieren kannst. Weite
8282

8383
## Konfiguration und Einstellung
8484

85+
{{% expand "Kann ich das Verzeichnis »web« nach »public« ändern?" %}}
86+
Ja. Du mußt dazu das Verzeichnis umbenennen. Überprüfe ob in der »composer.json« der Eintrag `"public-dir": "web"` existiert
87+
und entferne diesen. Starte anschließend über den Manager oder der Konsole `composer install`. Setze dann dieses Verzeichnis
88+
als Document Root über das Admin-Panel deines Hosting-Providers.
89+
{{% /expand %}}
90+
8591
{{% expand "Wie kann ich den Contao Backend-Pfad ändern?" %}}
8692
{{< version-tag "4.13" >}} Du kannst in der [config.yml](/de/system/einstellungen/#config-yml) den Eintrag `route_prefix` hinzufügen.
8793
Anschließend musst du über den Contao-Manager (»Systemwartung« > »Prod.-Cache erneuern«) oder über die Konsole

docs/manual/faq/_index.en.md

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ This is a hint how to activate the strict mode. More information can be found [h
8080

8181
## Configuration and adjustment
8282

83+
{{% expand "Can I change the directory »web« to »public«?" %}}
84+
Yes. You have to rename the directory. Check if the entry `"public-dir": "web"` exists in the "composer.json" and remove it. Then start `composer install` from the manager or the console. Set this directory as document root via the admin panel of your hosting provider.
85+
{{% /expand %}}
86+
8387
{{% expand "How can I change the Contao backend path?" %}}
8488
{{< version-tag "4.13" >}} You can add the entry `route_prefix` in config.yml and then you have to empty the application cache once using the Contao Manager or the console.
8589

0 commit comments

Comments
 (0)