Message Boards

Add wildcard to shorturl redirect?

Jo Carter, modified 2 Years ago.

Add wildcard to shorturl redirect?

New Member Posts: 4 Join Date: 11/2/21 Recent Posts

Hi all,

I have a url: /website-feedback that i want to redirect to /problem-with-website. A shorturl works fine unless I add parameters to the first url for example: /website-feedback?referrerUrl=https://mycompany.powerappsportals.com

Is there any way I can add a wildcard to the shorturl, so that anything that starts /website-feedback gets redirected?

Thanks

Jo

thumbnail
Mohammed Yasin, modified 2 Years ago.

RE: Add wildcard to shorturl redirect?

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

Hi,

Using a webserver in front of Liferay would be one way of doing this , by reverse proxy you can reverse matching pattern to diff urls behinds.

https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html