Hello,
Not necessarily.
I believe that something like the below should work (notice I changed the order of the conditions).
if %{HTTP_HOST} regimatch <host>.* [and]
if %{PATH} regimatch "^/<name of page>" [or]
if %{REMOTE_ADDR} regimatch ^<ip1>.* [or]
if %{REMOTE_ADDR} regimatch ^<ip2>.* [or]
if %{REMOTE_ADDR} regimatch ^<ip3>.*
SetHeader x-sap-webdisp-target-sid <ID> [break]
Regards,
Isaías