Welcome, Guest
Username: Password: Remember me

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

[ Clean | easy | alternative ] URLs for easy reference 2 years 9 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

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 months ago #71006

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4206
  • Thank you received: 790
  • Karma: 360
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: filhocf

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 months ago #71013

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6360
  • Thank you received: 826
  • Karma: 245
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
Last Edit: 2 years 9 months ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: filhocf, THO

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 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: 2 years 9 months ago by filhocf. Reason: add the user's vision.
The administrator has disabled public write access.

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 months ago #71017

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4206
  • Thank you received: 790
  • Karma: 360
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 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 2 years 9 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: 2 years 9 months ago by JtC.
The administrator has disabled public write access.

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 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.

Re: [ Clean | easy | alternative ] URLs for easy reference 2 years 9 months ago #71088

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6360
  • Thank you received: 826
  • Karma: 245
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 :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.175 seconds
Donation Image