Qlik Community

Ask a Question

QlikView Documents

QlikView documentation and resources.

Announcements
Become an analytics expert with Qlik's new 15 week course: Applied Data Analytics using Qlik Sense. READ MORE

Scrap the long QlikView URL – use a friendly URL instead

simondachstr
Luminary Alumni
Luminary Alumni

Scrap the long QlikView URL – use a friendly URL instead

Friendly URLs are web address which are easy to read & type. They usually consist short names which are abbreviated descriptions of the content (alias) and are therefore short and easy to remember. These friendly URLs can be very helpful when developing Qlik applications and can support maintaining the user-access to an application when deployed in production. The goal is to replace the long URL e.g. http://servername/QvPlugin/opendoc.htm?document=Movies%20Database.qvw with a shorter version http://servername/MovieDB by using a URL redirection script.

friendlyURLMovieDB.png

This way the user will always have:

  1. one easy to remember link at all times which he can bookmark in his browser.
  2. a static link to his application which will never change.

The developer will have the ability to

  1. control which application the users are accessing throughout the friendly URL.
  2. point the friendly URL to different versions of the same app, without the user noticing, just by modifying the redirection.
  3. make sure no old or wrong applications are accessed which have been picked up by links in old eMails.

In this document, I will show you the different easy ways of setting up friendly URLs and the related redirections.

Overview:

  • Host a friendly URL using Internet Information Services (IIS)
  • Host a friendly URL using QlikView Web Server
  • Passing parameters throughout a friendly URL


Disclaimer:

While this document will show you three different ways of setting up friendly URLs I am aware of the fact they are not exhaustive. If anyone knows better or other ways of achieving the same result, please share and I am happy to include your suggestions in my document with a reference. Or if anyone encounters any limitations/issues while using them, please do so too.


I would also like to thank Philip Hand from CapVentis for his contribution to this document.


Labels (2)
Attachments
Comments
nicolas_martin
Partner
Partner

I don't understand why, when I add a new entry in the QVWS, the QVWS service failed to restart.

If I remove the entry in the config file, it works again.

<Folders>

      <Folder>

        <Name>QLIKVIEW</Name>

        <Path>C:\Program Files\QlikView\Web</Path>

      </Folder>

      <Folder>

        <Name>QVAJAXZFC</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax</Path>

      </Folder>

      <Folder>

        <Name>QVDESKTOP</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewDesktop</Path>

      </Folder>

      <Folder>

        <Name>QVPLUGIN</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewPlugin</Path>

      </Folder>

      <Folder>

        <Name>TEST</Name>

        <Path>C:\Program Files\QlikView\Web</Path>

      </Folder>

    </Folders>

Don't work.

<Folders>

      <Folder>

        <Name>QLIKVIEW</Name>

        <Path>C:\Program Files\QlikView\Web</Path>

      </Folder>

      <Folder>

        <Name>QVAJAXZFC</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax</Path>

      </Folder>

      <Folder>

        <Name>QVDESKTOP</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewDesktop</Path>

      </Folder>

      <Folder>

        <Name>QVPLUGIN</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewPlugin</Path>

      </Folder>

    </Folders>



Works.


I tried with QV 11.2 SR 12.


Any idea?



0 Likes
simondachstr
Luminary Alumni
Luminary Alumni

Maybe it's related to permissions? Did you add the Folder via the qmc?

0 Likes
nicolas_martin
Partner
Partner

Yes I added the folder via the QMC.

Once applied, the server is no more reachable. If I try to restart the QVWS service, it fails.

The only way to start the service is to remove the

      <Folder>

        <Name>TEST</Name>

        <Path>C:\Program Files\QlikView\Web</Path>

      </Folder>

entry in the configuration file.

0 Likes
simondachstr
Luminary Alumni
Luminary Alumni

Looking at your code, it has come to my attention that the \Web folder is already used with another name:

<Folders>

      <Folder>

        <Name>QLIKVIEW</Name>

        <Path>C:\Program Files\QlikView\Web</Path>

      </Folder>

      <Folder>

        <Name>QVAJAXZFC</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax</Path>

      </Folder>

      <Folder>

        <Name>QVDESKTOP</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewDesktop</Path>

      </Folder>

      <Folder>

        <Name>QVPLUGIN</Name>

        <Path>C:\Program Files\QlikView\Server\QlikViewClients\QlikViewPlugin</Path>

      </Folder>

      <Folder>

       <Name>TEST</Name>

        <Path>C:\Program Files\QlikView\Web</Path>

      </Folder>

    </Folders>

Try maybe defining a different distinct folder..

0 Likes
nicolas_martin
Partner
Partner

At first, I tried with another folder.

I tried:

- Another folder on another drive.

- Another folder on the same drive.

- A sub folder of "web".

- The same folder as existing one.


Nothing works.

0 Likes
simondachstr
Luminary Alumni
Luminary Alumni

This seems odd to me - I would then recommend to you to go the IIS route.

0 Likes
mr_novice
Creator II
Creator II

This solution works great but for some users nothing is displayed. No error message or nothing. Just a white page. Other users with problems will get to open the document but objects are empty. Document works fine if the same users use the long "un-friendly" url. Any suggestions what the problem could be?

Br

Cristian

0 Likes
mr_novice
Creator II
Creator II

Changed to IIS and it doesnt work. I get this error: "HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid."

Detail error:

Module   IIS Web Core
Notification   BeginRequest
Handler   Not yet determined
Error Code   0x80070005
Config Error   Cannot read configuration file due to insufficient permissions
Config File   \\?\UNC\myservername\QlikView\Redirection\REPORT01\web.config

Any suggestions where to begin troubleshooting? Im using the qlikview service account that have access to the folder (file server).

0 Likes
simondachstr
Luminary Alumni
Luminary Alumni

Ensure \\?\UNC\myservername\QlikView\Redirection\REPORT01\web.config has sufficient access permission e.g. IIS_IUSRS has read/write access


0 Likes
Emmanuelle-Bustos

Thank you for the info.

Version history
Revision #:
1 of 1
Last update:
‎2014-12-01 05:57 AM
Updated by: