Reputation: 15
I'm having trouble with tuckey URL outbound rules. I was able to set up inbound rules, but I need to convert a URL using outbound rule. We are using tuckey with Spring.
Outbound rule:
<outbound-rule>
<from>^/domain.mvc?domainId=([0-9]+)&domainName=([a-z]+)$</from>
<to type="forward">/signin.mvc/$1/$2</to>
</outbound-rule>
JSTL:
<a href="<c:url value="/domain.mvc?domainId=0123&domainName=abc" />">
Although it says processing outbound rule it's not forwarding to my URL. In the url-rewritestatus it shows all my rules but doesn't show matched ones. What I am doing wrong?
Upvotes: 0
Views: 1172
Reputation: 3343
The question mark ? has a special meaning in a regex. You will need to escape it with a backslash.
^/domain.mvc\?domainId=([0-9]+)&domainName=([a-z]+)$
Upvotes: 1