Check out the LimeSurvey source code on GitHub!

1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!)

More
2 years 5 months ago - 2 years 5 months ago #111251 by fvanderstarre
We're planning to upgrade from 1.90 build 9642 to 2.05 very soon (and about time too ;).
Survey links for participants from this version like "limesurvey-test.amc.nl/new/index.php?sid=93512" now go to the public survey list page instead of taking you to the survey - but in L.S. 2.00+ (build 130929) they still work.
What do I have to do to make them work in 2.05+ (build 140302) ?
I'm aware of earlier topics in this forum about this issue, and bug report #8586. They don't have the answers I need....
See attached .htaccess I set up; changed AllowOverrides in httpd.conf to All. Admin urls working fine, but the ...?sid=93512 url is still taking me to public survey list page.
Any help much appreciated!

File Attachment:

File Name: htaccess.txt
File Size:1 KB
Attachments:
Last Edit: 2 years 5 months ago by fvanderstarre. Reason: Subject corrected

Please Log in to join the conversation.

More
2 years 5 months ago #111402 by ahmadaub
Any luck with solving this issye?

Please Log in to join the conversation.

More
2 years 5 months ago #111409 by fvanderstarre
Still working on it!

Please Log in to join the conversation.

More
2 years 5 months ago #111539 by fvanderstarre
This seems to work (Red Hat, Apache), thanks to my colleague J. Vulto!
<IfModule mod_rewrite.c>
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

# Input: https://[you-limesurvey-base-url]/index.php?sid=12185&lang=nl&token=7btn6t66svzif23j9mya8ewjm2dxzp
RewriteCond %{QUERY_STRING} ^lang=([^&]+) [NC,OR]
RewriteCond %{QUERY_STRING} &lang=([^&]+) [NC]
RewriteRule ^index\.php.* $0/lang-%1
# Output index.php/lang-nl

RewriteCond %{QUERY_STRING} ^token=([^&]+) [NC,OR]
RewriteCond %{QUERY_STRING} &token=([^&]+) [NC]
RewriteRule ^index\.php.* $0/token/%1
# Output index.php/lang-nl/token/7btn6t66svzif23j9mya8ewjm2dxzp

RewriteCond %{QUERY_STRING} ^sid=([0-9]{5,}) [NC,OR]
RewriteCond %{QUERY_STRING} &sid=([0-9]{5,}) [NC]
RewriteRule ^index\.php(.*) https://[you-limesurvey-base-url]/index.php/%1$1? [R,L]
# Output index.php/12185/lang-nl/token/7btn6t66svzif23j9mya8ewjm2dxzp

</IfModule>
# General setting to properly handle LimeSurvey paths
# AcceptPathInfo on

Please Log in to join the conversation.

More
2 years 5 months ago #111551 by Mazi
From my point of view we should try to persuade the developers to give this another try for backward compatibility reasons.
Imagine having a survey with 10.000 particpants. If you had send them an email invitation a month ago and now plan to update from 1.9x to the latest 2.05 version all those participants who have not answered yet will not be able to take the survey anymore.

fvanderstarre, can you file a bug report and post the link here?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
2 years 5 months ago #111594 by fvanderstarre
Mazi, see bugs.limesurvey.org/view.php?id=8586 . Considered "not a bug" .... :(

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form