Welcome to the LimeSurvey Community Forum

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

survey url

  • evaluation2023
  • evaluation2023's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 9 months ago #242793 by evaluation2023
survey url was created by evaluation2023
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.0.1
Own server or LimeSurvey hosting: own server
Survey theme/template:
==================

Hi!
I have two independend limesurvey-installations.
On Server A: I can begin the survey with URL: example.org/123456 (so without "index.php")
On Server B: When I want to use URL example2.org/123456 I get "not found 404, The requested URL was not found on this server.", here just the url wit "index.php/123456" is working.

Has anybody an idea?


 

PHP Version 8.0.28
Version 5.6.4+230206

Please Log in to join the conversation.

More
1 year 9 months ago #242794 by jelo
Replied by jelo on topic survey url
Server B has a different webserver software or a different configuration when it comes to rewriting URLs.

Compare the webserver software and the files (e.g .htaccess) in the webroot. Ask the webmaster of Server B about rewriting URLs.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: evaluation2023

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242801 by tpartner
Replied by tpartner on topic survey url
Also look at the urlManager settings in config.php.

Set 'showScriptName' to false.

- www.limesurvey.org/manual/Optional_settings#URL_settings

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: evaluation2023

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 9 months ago #242866 by DenisChenu
Replied by DenisChenu on topic survey url
I think showScriptName is used only to show the link.
But to allow remove index.php : you need mod_rewrite for apache or set config for nginx.
www.limesurvey.org/manual/General_FAQ/en...to_get_a_shorter_URL
I don't know for IIS

Removing showScriptName need rewrite

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.
The following user(s) said Thank You: evaluation2023

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242875 by tpartner
Replied by tpartner on topic survey url

I think showScriptName is used only to show the link.
I use 'showScriptName' => false in 3.x and "index.php" is removed from all URLs - both for admin and for surveys.

Admin URL:
Code:
https://localhost/limeSurvey3x/admin/survey/sa/view/surveyid/55121

Survey URL:
Code:
https://localhost/limeSurvey3x/55121?newtest=Y&lang=en

Whereas, in 5.x on the same server, I use 'showScriptName' => true and the URLs are like this.

Admin URL:
Code:
https://localhost/limeSurvey5x/index.php/surveyAdministration/view?surveyid=921113

Survey URL:
Code:
https://localhost/limeSurvey5x/index.php/921113?newtest=Y&lang=en

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: evaluation2023

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 9 months ago - 1 year 9 months ago #242883 by DenisChenu
Replied by DenisChenu on topic survey url

I think showScriptName is used only to show the link.
I use 'showScriptName' => false in 3.x and "index.php" is removed from all URLs - both for admin and for surveys.

 
It's not the question :)

You can set 'showScriptName' => true, with rewrite : url show with index, but yuou can remove index.php/

See :
demo.sondages.pro/813473?lang=en

And links on demo.sondages.pro/

'showScriptName' is set to TRUE but url without index.php/ work too (due to apache rewrite here)

Same for admin url
example.org/surveyAdministration/view?surveyid=999755 work with `'showScriptName' => true`

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.
Last edit: 1 year 9 months ago by DenisChenu.

Please Log in to join the conversation.

  • evaluation2023
  • evaluation2023's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 9 months ago #242894 by evaluation2023
Replied by evaluation2023 on topic survey url
Could you tell me your settings?
We use Linux Server with Apache 2.0 (Debian) and PHP 8.0.28.

Server Admin does not know how to change settings yet.

PHP Version 8.0.28
Version 5.6.4+230206

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242897 by holch
Replied by holch on topic survey url

Server Admin does not know how to change settings yet.´


Then he/she is not a server admin, but just some random person responsible for the server. ;-)

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.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242898 by tpartner
Replied by tpartner on topic survey url

Could you tell me your settings?
What settings are you referring to?

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.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 9 months ago #242901 by DenisChenu
Replied by DenisChenu on topic survey url

We use Linux Server with Apache 2.0 (Debian) and PHP 8.0.28.

Server Admin does not know how to change settings yet.
 
Apache : check if mod_rewrite is activated in PHP Info
 

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.
The following user(s) said Thank You: evaluation2023

Please Log in to join the conversation.

  • evaluation2023
  • evaluation2023's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 9 months ago #242903 by evaluation2023
Replied by evaluation2023 on topic survey url
In php-Info „mod_rewrite“ is listed under loaded modules…

PHP Version 8.0.28
Version 5.6.4+230206

Please Log in to join the conversation.

More
1 year 9 months ago #242911 by jelo
Replied by jelo on topic survey url

We use Linux Server with Apache 2.0 (Debian) and PHP 8.0.28.
 
Really Apache 2.0? Or the apache2 package which is usually Apache 2.4.

I would check the options of the apache settings (apache2.conf) of the directory where LimeSurvey is installed.
Multiviews might disturb the htacces rewrite.


 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose