Skip to Content

WebDispatcher NW-7.45 + Syntax of URL-redirect URL-modification, parameter icm/HTTP/mod_,

where to find examples or docs to syntax of URL-redirection and URL-modification within WebDispatcher ?

looking at sap-help docs, the entries are different and irritating, maybe one example seems to be wrong ? - but which of them ??

sometimes there is mentioned using { } or ( )

in 7.31 help-doc { HTTP_HOST } ,

but in 7.40 help-doc ( HTTP_HOST )

e.g. in NW-7.31 help-doc:

https://help.sap.com/saphelp_nw73ehp1/helpdata/en/48/9266ffaa6b17cee10000000a421937/content.htm

===

# URL rewriting

if %{HTTP_HOST} regimatch ldp*

RegIRewriteUrl ^/ping(.*) /sap/public/icman/ping$1

===

e.g. in NW-7.40 help-doc:

http://help.sap.com/saphelp_nw74/helpdata/en/44/123158c5134eefa4395a9e365bd60a/frameset.htm

===

If % (HTTP_HOST) regimatch  ^ ldp .*

RegIRewriteUrl ^/ping(.*) /sap/public/icman/ping$1

===

is in the modification-configuration file (rules.txt)

in every URL-modifying the IF .... case needed ?

or is it possible to use RegIRewriteUrl ...... without IF ....

=====

If % {HTTP_HOST} regimatch ^ xxxxxx .*

RegIRewriteUrl ^/sap/bc/srt/xip/sap/zauftragaendern_is/100/auftragaendern/auftragaendern(.*) /XISOAPAdapter/MessageServlet?senderService=BC_WEBSERVICE∫erface=AuftragAendern_IS

===

starting the WebDisp. - error occurs with

FATAL: HttpModHandlerInit: Error processing rule file /usr/sap/WT1/SYS/global/security/data/icm_URLredir.txt:

syntax error in line 7: >If % {HTTP_HOST} regimatch ^ xxxxxx .*<.

See SAP note 1918448. ***

WARNING: Could not start service (rc=-1) PORT=8443,PROT=HTTPS,TIMEOUT=7200,PROCTIMEOUT=900,VCLIENT=1..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 10, 2017 at 01:18 PM

    o.k.

    in this case it was a (CR) carriage return

    you have to eliminate CR between arg1 and arg2 within a RegIRewriteUrl

    Add comment
    10|10000 characters needed characters exceeded