Need help with: Internet site - Redirection/Substitution rule

Hi all !

I’m trying to set up a redirection rule to map an incoming url which will contain a parameter to be passed to an internal url…

Well, here’s the example:

Incoming url: /support?id=123456

should me redirected to: /WWW/support.nsf/ticket?OpenAgent&id=123456

Problem:

When using an ? (questionmark) in the incoming url, I always get a 404

I have tried to use & instead of ?, but that doesn’t work either. Server is telling me there’s no such design element…

So, ultimate question. Is is possible to create an redirection or substitution rule where the incoming url can contain a parameter and then pass this to the replacement or redirect url ?

Thanks a lot in advance !

best regards,

Petter Kjeilen

Subject: Redirection rule with parameter

You can do this with a asterisk (*), like so:

Incoming url: /support?id=*

should me redirected to: /WWW/support.nsf/ticket?OpenAgent&id=*

BUT BE CAREFUL!!! The asterisk can (obviously) stand for anything, so you want to be as specific as possible

Subject: Redirection rule with parameter

Hi Andrew,

I tried this but still get the 404 error…

It seems to be that using an ? in the incoming URL is the problem…

regards,

Petter

Subject: Yes

I think you are correct, in my testing I always get 404s with questions marks

Created SPR ALAS82KQUW for this

Subject: Domino ignores query string in pattern

Looks like there is an answer is documentation:http://www.ibm.com/support/knowledgecenter/SSKTMJ_8.0.1/com.ibm.help.domino.admin.doc/DOC/H_WEB_SITE_RULES_OVERVIEW.html

Any patterns you specify for a rule’s Incoming URL pattern field should not include a host name or query string.

As a workaround you can try an exclamation point instead of the question mark.