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
8 months 1 week ago - 8 months 1 week 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: 8 months 1 week 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
8 months 1 week 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
8 months 3 days 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
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 months 9 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 support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose