Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner
Partner

Shorten Mashup Path by Using URL Masking and Redirect

Not sure if anyone else has tried this, but I need a URL that isn't incredibly long in order to send to clients for this mashup we made recently. It is located at .../extensions/testmashup/testmashup.html and the client is required to sign in.

Does anyone know if editing the .htaccess file on the web server will let me mask and redirect the URL?

So instead of going to https://subdomain.domain.com/extensions/testmashup/testmashup.html the client could instead type https://subdomain.domain.com/testmashup?

I've tried adding this to my htaccess file:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^subdomain.domain.com/testmashup [NC,OR]

RewriteCond %{HTTP_HOST} ^subdomain.domain.com/testmashup [NC]

RewriteRule ^(.*)$ https://subdomain.domain.com/extensions/testmashup/testmashup.html [L,R=301,NC]

But I can't get it to work. Qlik Sense Server is deployed on an Azure VM and the DNS records of one of our websites' subdomains points to the server.

Any help would be greatly appreciated!

1 Reply
Highlighted

Re: Shorten Mashup Path by Using URL Masking and Redirect

Hi Tim,

If your mashup is served by Qlik Sense built-in web server (and by the look of your URL it looks like it is) there is no support for this, so you should probably switch to using another web server (IIS ??).  You need to make some changes to your HTML and javascript files for that, as I have described here: Re: load mashup from other path , but I guess you know that...

Hope this helps

Erik