Change URL for Limesurvey

More
1 year 1 week ago #161521 by jorkataaa85
jorkataaa85 created the topic: Change URL for Limesurvey
Hi guys,

as seen, often problem, which was already discussed. But i still have problems solving it.


I have my URL ( WEBSITE/limesurvey/index.php/12435624355?lang=en)

Lang=en shows that my survey has multiple language possibility.

I want to change this URL and exlude /limesurvey/ from the path and show something like

WEBSITE.COM/NAME OF THE SURVEY=EN

I did try to change the publicurl in the config.php file (application/config/config.php)


'publicurl'=> WEBSITE.COM


I did try to change the URL Format as well


'urlManager' => array(

'urlFormat' => 'path',


from 'path' to 'get'.


I still face problems and i would be very thankful if someone could offer a decision.


Cheers

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #161522 by jorkataaa85
jorkataaa85 replied the topic: Change URL for Limesurvey
i tried
'showScriptName' => true,

to change to

'showScriptName' => false,


Did not work either :(

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #161523 by jelo
jelo replied the topic: Change URL for Limesurvey

jorkataaa85 wrote: WEBSITE/limesurvey/index.php/12435624355?lang=en

I want to change this URL and exlude /limesurvey/ from the path and show something like

WEBSITE.COM/NAME OF THE SURVEY=EN


Excluding /limesurvey/ would result in this URL:
WEBSITE/index.php/12435624355?lang=en

manual.limesurvey.org/General_FAQ#How_ca...to_get_a_shorter_URL

Take a look at the Yii-documentation and the comments about URL rewriting
www.yiiframework.com/doc/guide/1.1/en/topics.url

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #161524 by jorkataaa85
jorkataaa85 replied the topic: Change URL for Limesurvey
Hi
Thanks i google it before and reached this pages as sujested answers,

tried it, but did not work out actually.

I do use apache server su i gues i do not need the part for Nginx http server.

My poit was not just to change the baseurl, but to remove this numbers as well

WEBSITE/limesurvey/index.php/12435624355?lang=en

should be changed to

WEBSITE/name of survey=EN

this is my point and after several hours trying and modifying the confg.php and config-defaults.php

i still did not manage to do it

Please Log in or Create an account to join the conversation.

More
1 year 6 days ago #161527 by jelo
jelo replied the topic: Change URL for Limesurvey

jorkataaa85 wrote: to remove this numbers as well

Without the sid (surveyid), the number, you won't be able to access surveys.
That number is the name of the survey for the Limesurvey application.
You won't find any option inside LimeSurvey to simple change that behaviour towards a alphanumeric name.

A alias feature to replace the sid with a short text isn't implemented.
The feature request from 2013 can be found here:
bugs.limesurvey.org/view.php?id=8239

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 year 6 days ago #161529 by jorkataaa85
jorkataaa85 replied the topic: Change URL for Limesurvey
O WOW!

So there is no possibility to rename the survey itself to mysurvey.php or mysurvey.html?

Should alway be with a numeric value?

Cheers and thanks for your time. I managed to exlude the index.php from the path, but 12435624355?lang=en is impossible to rename?

Cheera

Please Log in or Create an account to join the conversation.

More
1 year 6 days ago #161530 by jelo
jelo replied the topic: Change URL for Limesurvey
As a workaround you can create redirections via apache htaccess or simple php files.
But that has nothing to do with Limesurvey. It's a way to redirect users on a website.
Often used when files have been moved and the webserver helps to redirect users.

So it is just a way to get short,simple urls for a few surveys.
www.limesurvey.org/de/foren/development/...en-is-entered#158324

httpd.apache.org/docs/2.4/rewrite/remapping.html
Don't cut and paste. You need to check what webserver and version is used first.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 year 6 days ago #161531 by jorkataaa85
jorkataaa85 replied the topic: Change URL for Limesurvey
I tried to use the .htaccess file and wrire it

it had by default - deny from all

i wrote : Redirect /myhtml.html example.com/index.php/12345lang=EN where the http Adress is the real address of my survey

did not work.

So there is no way to get rid of the numeric value and have a survey URL like WEBSITE/name of survey=EN

Please Log in or Create an account to join the conversation.

More
1 year 6 days ago #161534 by jorkataaa85
jorkataaa85 replied the topic: Change URL for Limesurvey
and i managed to exclude the index.php file from the path

http://DOMAIN/limesurvey/index.php/12512341234123?lang=en

is now


http://DOMAIN/limesurvey/12512341234123?lang=en

would love to remove the limesurvey path as well

Please Log in or Create an account to join the conversation.

More
1 year 4 days ago - 1 year 4 days ago #161573 by holch
holch replied the topic: Change URL for Limesurvey
Well, you installed Limesurvey into the /limesurvey/ folder. So what do you expect? Everything around that will always be some kind of workaround, as long as Limesurvey is installed in this subfolder.

If it is just because you don't want people to know that you are using Limesurvey: Why not rename the folder to something less revealing like /survey/?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last Edit: 1 year 4 days ago by holch.
The following user(s) said Thank You: popcorn

Please Log in or Create an account to join the conversation.

More
1 year 4 days ago #161588 by tpartner
tpartner replied the topic: Change URL for Limesurvey
...or use a sub-domain directed to the /limesurvey/ directory.

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

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago #169402 by popcorn
popcorn replied the topic: Change URL for Limesurvey
Hi guys,

Hoping that I could get some advice from you gurus.

1) I have Version 3.8.1+180529 installed. By default the files are installed in the "LimeSurvey" folder. I tried researching on what others did to change the folder name from "LimeSurvey" to "Survey" but it didn't work for me. I could not locate the "rooturl" like what others were discussing about.


2) I am puzzled with why my links are in the following format as opposed to what others who have the same installation as I do. I have already changed "showScriptName" to "false".


My current survey links:

subdomain.com/LimeSurvey/?r=survey/index&sid=123456&lang=en


Other's survey links

subdomain.com/LimeSurvey/123456?lang=en


Would you be able to guide me on how to achieve a link without the "?r=survey/index&sid"

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #170262 by lonsy
lonsy replied the topic: Change URL for Limesurvey
Hi,
Have you tried to change from get to path in config.php as below?

'urlManager' => array(
'urlFormat' => 'path',
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #171624 by davebostockgmail
davebostockgmail replied the topic: Change URL for Limesurvey
If it is critical to do this then I would just create a page that redirects to your survey and put it in the root directory of your web server. This can be done with HTML / PHP / JQuery .... your choice ....


You can then call it what ever you want .... www.example.com/yourpagename

Then use mod_rewrite to hide the fact your the original url is redirecting the user.

httpd.apache.org/docs/current/en/mod/mod_rewrite.html

That way you can have as many surveys named what you want without showing the full survey URL.
Last Edit: 4 months 3 weeks ago by DenisChenu. Reason: Usage of example.com

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!