densitydesign / placplac

5 stars 1 forks source link

Can't browse the built project if hosted in subfolder #102

Closed iosonosempreio closed 2 years ago

iosonosempreio commented 2 years ago

Once a project is built, it only works if hosted at the server root. It doesn't work if hosted in subfolder. Screenshot 2022-01-31 at 17 41 47

gianpieropa commented 2 years ago

it does not depends from the project, we have no power on folders or subfolders. It depends on how the project is served and on the configuration of the web server.

iosonosempreio commented 2 years ago

Can you provide examples for an appropriate configuration of the server? Most of the projects will be served from subfolders.

gianpieropa commented 2 years ago

L'unica soluzione che mi viene in mente per aiutarvi , in quanto hostarlo in subdirectory non è semplice se non si ha un pò di esperienza con webservices, è far scegliere l'utente al download del progetto la directory in cui sarà hostato specificando il nome, in modo tale che venga aggiunto a tutti i path all'interno dei file e che quindi si "auto configri" per essere hostato in subdirectory.

iosonosempreio commented 2 years ago

Potrebbe essere una buona soluzione, inoltre è simile a quanto viene fatto da altri frameworks (esempio Gatsby path prefix).

gianpieropa commented 2 years ago

solved, now the user has to write the subufolder if the site will be hosted in a subfolder. For example if the user will host the site in "/project" he has to type in the dialog /project