1 Reply Latest reply: Sep 13, 2016 1:10 AM by Erik Wetterberg RSS

    Shorten Mashup Path by Using URL Masking and Redirect

    Tim Kendrick

      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!