cancel
Showing results for 
Search instead for 
Did you mean: 

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

christoph_ostrop
Active Contributor
0 Kudos

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&interface=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..

christoph_ostrop
Active Contributor
0 Kudos

the mentioned hint in sapnote 1918448 is a joke:

https://launchpad.support.sap.com/#/notes/0001918448

"if you are facing syntax-error - please correct your syntax"

thanks for that help !!!

Accepted Solutions (1)

Accepted Solutions (1)

christoph_ostrop
Active Contributor
0 Kudos

o.k.

in this case it was a (CR) carriage return

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

Answers (0)