Hi Community,
I would greatly appreciate a little help with this challenge:
External clients will hit the LTM with a own http host “connect.test.company.org/URI” and we do need to modify this requests that the webserver understands it: "abctest.company.org/connect/URI
As I am not very familiar with developing, I wanted to ask if anyone can check this iRule or give me a better idea 
Thanks, Manuel
sorry, the rule is missing: when HTTP_REQUEST { if { [HTTP::host] starts_with “connect” } { HTTP::redirect “https://abctest.company.org/connect/\[HTTP::uri]” } }
Hi Manuel, HTTP::redirect tell user’s browser to go to a different location, that is different from what you need.
I suggest you to use rewrite profile, so you don’t need to create an irule. Find below a good explanation and example: 404 Page not found | BIG-IP Documentation
If you use HTTPS, yes it’s required because F5 needs to “read” the http traffic.
Ok, got it.
Is there any way I can solve this without terminating SSL? I guess we would consider using an iRule in this case, right?
I don’t think you can do what you need without SSL termination, because you have to change the URI sent to the backend servers.
One last question: if I use a rewrite profile, will it keep the paths or queries behind the host that I am redirecting? E.g. user accesses “connect.test.company.org/test/site/query” will it be translated to “abctest.company.org/connect/test/site/query”?
Ok, I understand that part.
If the user will come up with different http paths or queries, is there anyway to maintain this values. Unfortunately we cannot define all paths a user potentially could go, so we need a wildcard (as we would use the [HTTP::uri] or [HTTP::path] in an iRule.
Alright, thank you. I will try if a combination of rewriting the host and uri, but keeping the rest of the http path is possible. Else wise I will use iRule. Thanks for your support!
tiziano, Where is that GUI Application from for Portal Re Write, I have not seen this before?
Hi, like described in this link: 404 Page not found | BIG-IP Documentation you will find it here: Local Traffic > Profiles > Services > Rewrite
Thanks for your quick answer..see learn something new everyday 