Fancy Url Feature not working

More
5 years 7 months ago #80147 by JackChow
JackChow created the topic: Fancy Url Feature not working
I followed the instructions
1) renamed htaccess.txt to .htaccess under LS root folder
2) updated $modrewrite = 1; in config-defaults.php

But the fancy urls are not generated. Am I missing anything ?

Limesurvey Version : 1.92+ build 120509

The surveys are activated when testing this feature.

Please Log in to join the conversation.

More
5 years 7 months ago #80199 by Mazi
Mazi replied the topic: Fancy Url Feature not working
How does the survey feature look like that is shown after having selected a survey from the drop down tip right at the admin back-end?


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
5 years 7 months ago #80218 by JackChow
JackChow replied the topic: Fancy Url Feature not working
I assume you are referring under administration. Once I select the active survey from right drop down it looks same like before

The url is like this /admin.php?sid=48319

I checked the mod_rewrite on my apache is on. I checked the database the fancy urls are not created. What could be the issue ? Is this feature working for you ?

Please Log in to join the conversation.

More
5 years 7 months ago #80232 by Mazi
Mazi replied the topic: Fancy Url Feature not working
Please post the content of the .htaccess file.

Are there any other .htaccess files at any above folders?


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
5 years 7 months ago #80237 by c_schmitz
c_schmitz replied the topic: Fancy Url Feature not working
Fancy URL has nothing to do with the administration URLs. It is only meant for the survey URLs - the only change you would notice in the administration interface is that the Survey URL in the quick overview below the survey toolbar has changed.
Also if you send any invitations the fancy version URL in the invitation email will be used.

That's it.

Best regards

Carsten Schmitz
LimeSurvey project leader

Please Log in to join the conversation.

More
5 years 7 months ago #80241 by Fred01
Fred01 replied the topic: Fancy Url Feature not working
Not sure if this helps, but you mentioned changing the setting in config-defaults.php. Did you try copying the mod-rewrite setting to config.php instead?

The LimeSurvey doc recommends doing it that way:

If you want to change these settings please do not change it in config-defaults.php but copy the particular setting/line over to config.php and change it there. All settings in config.php overwrite the default values from config-defaults.php and starting with version 1.87 some of these settings get overridden in the Global settings dialog.


docs.limesurvey.org/Optional+settings&st...tions+for+LimeSurvey

Please Log in to join the conversation.

More
5 years 7 months ago #80244 by JackChow
JackChow replied the topic: Fancy Url Feature not working
This is the content of htaccess file


## MOD_REWRITE for LimeSurvey ##
<IfModule mod_rewrite.c>
RewriteEngine On

## DONT TOUCH ANYTHING ##
# Only with survey code
# server.fr/123456
RewriteRule ^([0-9]+)/*$ index.php?sid=$1 [L,QSA]

# Survey code + Lang : server.fr/123456/lang-fr
RewriteRule ^([0-9]+)/lang-([^/]*)/*$ index.php?sid=$1&lang=$2 [L,QSA]

# Survey code + Lang + Token : server.fr/123456/lang-fr/tk-sdlfkjozeiru
RewriteRule ^([0-9]+)/lang-([^/]*)/tk-([^/]*)/*$ index.php?sid=$1&lang=$2&token=$3 [L,QSA]

# Survey code + Token : server.fr/123456/tk-sdlfkjozeiru
RewriteRule ^([0-9]+)/tk-([^/]*)/*$ index.php?sid=$1&token=$2 [L,QSA]
</IfModule>


Yes there is one more htaccess file in www root folder. The contents of it are

RewriteEngine On
RewriteRule ^$ /survey [L]

ErrorDocument 403 /survey/Index.php
ErrorDocument 404 /survey/Index.php

Tried putting in config.php, deleted cookies, restarted the webserver still same issue.

Please Log in to join the conversation.

More
5 years 6 months ago #80486 by JackChow
JackChow replied the topic: Fancy Url Feature not working
Were you able to reproduce the error ?

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!