on 02-10-2017 10:32 AM
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..
o.k.
in this case it was a (CR) carriage return
you have to eliminate CR between arg1 and arg2 within a RegIRewriteUrl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.