Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: [ Clean | easy | alternative ] URLs for easy reference

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71005

  • filhocf
  • filhocf's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
When i make a survey, LimeSurvey uses its internal ID to reference this survey in the URL. The idea is change this URL by a more easy.

Example: A survey with employees that did MBA.

"normal URL"
my.site.com/survey/index.php?sid=37424

"Clean/easy URL"
my.site.com/survey/mba

so, /mba is a alternative URL to /index.php?sid=37424.

Say to my user some thing like "Please, enter in 'my.site.com/survey/mba' and answer the survey!" is more easy (and mnemonic) that say a URL with text and numbers.
The administrator has disabled public write access.
The following user(s) said Thank You: THO

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71006

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
You can use $modrewrite to enable "fancy URLs".

If that doesn't meet your needs, you can use remote PHP files to redirect to the appropriare survey or, if your server is apache, .htaccess redirects.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: filhocf

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71013

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9600
  • Thank you received: 1376
  • Karma: 390
tpartner wrote:
or, if your server is apache, .htaccess redirects.
Easy ;)
Redirect permanent /survey/mba  http://my.site.com/survey/index.php?sid=37424
in .htaccess
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
Last Edit: 4 years 11 months ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: filhocf, THO

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71016

  • filhocf
  • filhocf's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
It is not exactly what i need. I need something that is possible to do through the web interface.

I need something like WordPress or Drupal, where I create a new post (like blog, page or news), and I can set the URL.

I need to see the side of user.

Is possible?
Last Edit: 4 years 11 months ago by filhocf. Reason: add the user's vision.
The administrator has disabled public write access.

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71017

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
There is no "alias" feature in LimeSurvey. You can add a feature request - ideas.limesurvey.org/.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71023

  • filhocf
  • filhocf's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
I already did it[1], Tony, and my idea is waiting moderation.
[1]ideas.limesurvey.org/ideatorrent/idea/360/

Meanwhile, i asked here too. :-)

Bests,
Claudio
The administrator has disabled public write access.

Aw: [ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71075

  • JtC
  • JtC's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi there,

a possible solution for your problem is the configuration with sub.domains in the dns configuration.

i tested this with my Domain-Provider (www.domaindiscount24.com) - i created a subdomain: test-survey.domain.com then i did a hidden redirection with the subdomain: test-survey.domain.com -> test-survey.limeask.com/123456/

Maybe this is the solution for your problem...

cya
Last Edit: 4 years 11 months ago by JtC.
The administrator has disabled public write access.

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71085

  • bwoo5
  • bwoo5's Avatar
  • Offline
  • Expert Lime
  • Posts: 80
  • Thank you received: 4
  • Karma: 0
What I have been doing for easy url's is creating a directory such as mysite.com/surveys/mba and then uploading a notepad file I named index.html into it using the following code. it opens up the survey full screen with no borders inside your url and it has been working great for me. You just have to put your survey url in the one place indicated, save it and upload it to that directory.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 />
<title>Your Title</title>
<META name="robots" content="noindex,nofollow">
</head><frameset rows="100%,*" border="0">
<frame src="YOUR SURVEY URL HERE" frameborder="0" />
<frame frameborder="0" noresize />
</frameset> document.removeEventListener('click, clickHandler, true);
</html>
The administrator has disabled public write access.

[ Clean | easy | alternative ] URLs for easy reference 4 years 11 months ago #71088

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9600
  • Thank you received: 1376
  • Karma: 390
filhocf wrote:
I already did it[1], Tony, and my idea is waiting moderation.
[1]ideas.limesurvey.org/ideatorrent/idea/360/

Meanwhile, i asked here too. :-)

Bests,
Claudio
Think of different url for each langage too :)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
Time to create page: 0.238 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form