I guess I should use “URL and IP – the user’s IP address is used to determine the match, in addition to the source URL”?
But when I set URL which shold be redirected and IP for which redirection should be made it does not work (redirection works for all other IPs).
Any idea how to solve this?
Yes, as I said, you can use the ‘URL and IP’ match.
How does it not work? You say it doesn’t work for the specific IP, but does work for all other IPs. Have you got the logic the wrong way round?
Source url: domain/email/
Query Parameters: Exact match all parameters in any order
Title: Some redirection
Match: URL and IP
IP: 123.45.678.91
When matched: REDIRECT to URL with HTTP code 301 – MOVED PERMANENTLY
Matched target: http://domain1/roundcube/
Unmatched target: http://domain2/roundcube/
Group: Redirections
Position: 0
Redirection works for all other IPs (diferent from 123.45.678.91) and redirects users to http://domain2/roundcube/. But even users with specified IP (123.45.678.91) are redirected to unmatched target: http://domain2/roundcube/ instead of matched target: http://domain1/roundcube/.
So my logic is here but I do not know if I am wrong somewhere?
If the redirect isn’t working then it is likely that the IP addresses are not what you expect, or that the server is not using the client IP (for example, if you are behind a proxy of some kind).