- Posts: 176
- Thank you received: 36
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
- Topic Author
- Offline
- Elite Member
Less
More
9 years 8 months ago - 9 years 8 months ago #111251
by fvanderstarre
1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!) was created 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!
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!
Attachments:
Last edit: 9 years 8 months ago by fvanderstarre. Reason: Subject corrected
The topic has been locked.
- ahmadaub
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
9 years 8 months ago #111402
by ahmadaub
Replied by ahmadaub on topic 1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!)
Any luck with solving this issye?
The topic has been locked.
- fvanderstarre
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 36
9 years 8 months ago #111409
by fvanderstarre
Replied by fvanderstarre on topic 1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!)
Still working on it!
The topic has been locked.
- fvanderstarre
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 36
9 years 8 months ago #111539
by fvanderstarre
Replied by fvanderstarre on topic 1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!)
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
<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
- Offline
- Official LimeSurvey Partner
9 years 8 months ago #111551
by Mazi
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
Replied by Mazi on topic 1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!)
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?
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 36
9 years 8 months ago #111594
by fvanderstarre
Replied by fvanderstarre on topic 1.90 survey URLs no longer work in LS 2.05 (but they do in LS 2.0!)
Mazi, see
bugs.limesurvey.org/view.php?id=8586
. Considered "not a bug" .... :(
The topic has been locked.