I have a url coming from SAP EP to Apache. I am trying to rewrite some url using mod_rewrite, but unfortunately for following url it is not working:
Code in httpd.conf is as follows:
RewriteCond %{QUERY_STRING} ^XMLFormID=(.*)$
RewriteRule "^/irj/servlet/prt/portal/prtroot.*$" https://mydssa.ril.com/irj/portal/srm/invalid [L]
Please help me.
Regards,
Jayendra
This should do the trick. I think the only problem with your version is the “/” at the beginning of the
RewriteRule