Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Do not load index.php for survey list

  • alex12345
  • alex12345's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #231745 by alex12345
Do not load index.php for survey list was created by alex12345
I would like to prevent that the index.php file is loaded to display the survey list. Instead, I want to redirect people to another URL.

Description of current architecture:
LimeSurvey is installed in the folder "/survey/". In "/" I run a static website. Therefore, participants to surveys will visit domain.com/survey/123456. Now, I want to prevent that people visit domain.com/survey/ directly and redirect them to domain.com instead. I tried updating index.php to redirect but these changes are easily lost when running a software update.  I did not yet find a solid way to implement this.

How would you approach this ?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #231749 by holch
Replied by holch on topic Do not load index.php for survey list
Usually this should be done via .htaccess. There you can define a redirect for domain.com/survey/, but this has very little to do with Limesurvey and is rather a hosting or server admin question.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #231756 by tpartner
Replied by tpartner on topic Do not load index.php for survey list
You can extend your theme and edit layout_survey_list.twig, redirecting with JavaScript.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose