- Posts: 2
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
1 week 6 days ago - 1 week 6 days ago #260519
by OliverKuhl
example.com starts directly with a specific survey - how? was created 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:
Any opinions? Thanks in advance!
Best regards
Oliver
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10112
- Thank you received: 3594
1 week 6 days ago #260527
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic example.com starts directly with a specific survey - how?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 days 3 hours ago #261738
by OliverKuhl
Replied by OliverKuhl on topic example.com starts directly with a specific survey - how?
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13664
- Thank you received: 2493
1 day 11 hours ago #262571
by DenisChenu
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.
Replied by DenisChenu on topic example.com starts directly with a specific survey - how?
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.