Welcome to the LimeSurvey Community Forum

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

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

  • fvanderstarre
  • fvanderstarre's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 7 months ago - 9 years 7 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: 9 years 7 months ago by fvanderstarre. Reason: Subject corrected
The topic has been locked.
More
9 years 7 months ago #111402 by ahmadaub
Any luck with solving this issye?
The topic has been locked.
  • fvanderstarre
  • fvanderstarre's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 7 months ago #111409 by fvanderstarre
Still working on it!
The topic has been locked.
  • fvanderstarre
  • fvanderstarre's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 7 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
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 7 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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • fvanderstarre
  • fvanderstarre's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 7 months ago #111594 by fvanderstarre
Mazi, see bugs.limesurvey.org/view.php?id=8586 . Considered "not a bug" .... :(
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose