Welcome to the LimeSurvey Community Forum

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

example.com starts directly with a specific survey - how?

  • OliverKuhl
  • OliverKuhl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 6 days ago - 1 week 6 days ago #260519 by OliverKuhl
Your LimeSurvey version: 6.5.2
Own server or LimeSurvey hosting: own server
Survey theme/template: extended template fruitytwentythree
==================

When a user goes to my domain, let's say example.com I want the welcome screen of a specific survey to be shown and skip the usual survey-list. Is this possible with lime survey directly?

Otherwise I would try to do it with a .htaccess rewrite rule:
Code:
RewriteEngine On
# Ensure the mod_rewrite module is turned on in Apache

RewriteCond %{REQUEST_URI} ^/$
# Applies the rule only if the request URI is the root

RewriteRule ^$ /index.php/survey/index/sid/{SURVEY_ID} [R=302,L]
# Redirects from the root to the survey


Any opinions? Thanks in advance!

Best regards
Oliver
Last edit: 1 week 6 days ago by OliverKuhl. Reason: remove double header

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago #260527 by tpartner
I suppose you could modify layout_survey_list.twig and place the survey in an iframe.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • OliverKuhl
  • OliverKuhl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 days 23 hours ago #261738 by OliverKuhl
Thanks for the reply and idea. Just wanted to let you know about my solution:

I use the .htaccess redirect above and in addition changed the survey-list-template to a "In construction" page, that will be displayed if the redirection is not active.

Works fine for me an the client, as we don't need the survey list. :)

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 8 hours ago #262571 by DenisChenu
Or do it via a plugin : beforeControllerAction event

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose