Redirection to a URL with hyphen doesn't work

388 Views Asked by At

I have a simple redirection rule

<rule>
    <from>/ask</from>
    <to>https://hlt.com/ask-wisely</to>
</rule>

Due to the hyphen being present, the rule doesn't work. If the hyphen doesn't exist, the rule works perfectly fine. It uses the tuckey url-rewrite filter for a java web app.

0

There are 0 best solutions below