adamzammit / limesurvey-docker

Production ready dockerised Limesurvey
GNU General Public License v3.0
86 stars 51 forks source link

index.php showing up in URLs #58

Closed Lx closed 3 months ago

Lx commented 4 months ago

Hi Adam,

Thank you for your ongoing efforts to offer up-to-date versions of LimeSurvey as a Docker container.

I've noticed that a lot of URLs are showing up with a superfluous index.php/ in them:

Interestingly, the URLs all work even when the index.php/ component is removed, so the issue seems to be more to do with URL generation. Looking at the source of generated pages, they do indeed contain index.php/ in all their outgoing links.

In your view, is this likely to be a direct LimeSurvey limitation or potentially something that can be dealt with via the Dockerfile somehow? I know that these things can sometimes be tweaked with environment variables or the like—I'm yet to delve too deeply into the Configuration section of the manual.

—Alex

ryanb3n commented 4 months ago

Check this answer I got on another site: https://forums.limesurvey.org/forum/installation-a-update-issues/156174-remove-index-php-from-url-s#265882

adamzammit commented 4 months ago

Hi @Lx ,

Thanks!

Please set this env var and you can hide the index.php file:

https://github.com/adamzammit/limesurvey-docker/blob/3e3a1d940403e88f1146d0a10d09762a0ea01047/README.md?plain=1#L69

Adam

Lx commented 3 months ago

Thanks Adam, and sorry—I’m frustrated that I somehow missed that setting in the README earlier. Working perfectly.